add webroot flag to certbot renewal

This commit is contained in:
Lucy Cifferello
2021-07-01 17:39:58 -04:00
parent 2e2aef9451
commit 5817f3169c

View File

@@ -51,6 +51,6 @@ renewSslCerts :: ReaderT RegistryCtx IO ()
renewSslCerts = do
domain <- asks $ registryHostname . 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}/privkey.pem #{key}|]