mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-30 19:54:47 +00:00
add webroot flag to certbot renewal
This commit is contained in:
committed by
Keagan McClelland
parent
c4929b4a61
commit
40e7d5f097
@@ -51,6 +51,6 @@ renewSslCerts :: ReaderT RegistryCtx IO ()
|
|||||||
renewSslCerts = do
|
renewSslCerts = do
|
||||||
domain <- asks $ registryHostname . appSettings
|
domain <- asks $ registryHostname . appSettings
|
||||||
(cert, key) <- asks $ (sslCertLocation &&& sslKeyLocation) . appSettings
|
(cert, key) <- asks $ (sslCertLocation &&& sslKeyLocation) . appSettings
|
||||||
void . liftIO $ system [i|certbot renew|]
|
void . liftIO $ system [i|certbot renew --webroot|]
|
||||||
void . liftIO $ system [i|cp /etc/letsencrypt/live/#{domain}/fullchain.pem #{cert}|]
|
void . liftIO $ system [i|cp /etc/letsencrypt/live/#{domain}/fullchain.pem #{cert}|]
|
||||||
void . liftIO $ system [i|cp /etc/letsencrypt/live/#{domain}/privkey.pem #{key}|]
|
void . liftIO $ system [i|cp /etc/letsencrypt/live/#{domain}/privkey.pem #{key}|]
|
||||||
|
|||||||
Reference in New Issue
Block a user