test setup

This commit is contained in:
Keagan McClelland
2020-08-04 16:12:31 -06:00
parent 949f2f867c
commit c157a99b0a

View File

@@ -49,5 +49,5 @@ doesSslNeedRenew cert = do
renewSslCerts :: FilePath -> ReaderT RegistryCtx IO ()
renewSslCerts cert = do
domain <- asks $ registryHostname . appSettings
void . liftIO $ system [i|certbot renew|]
void . liftIO $ system [i|certbot renew --dry-run|]
void . liftIO $ system [i|cp /etc/letsencrypt/live/#{domain}/fullchain.pem #{cert}|]