printing things for testing

This commit is contained in:
Keagan McClelland
2020-08-04 15:11:48 -06:00
parent 7c008f321c
commit b26ad51ba2

View File

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