mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-31 04:03:40 +00:00
printing things for testing
This commit is contained in:
@@ -49,5 +49,7 @@ doesSslNeedRenew cert = do
|
|||||||
renewSslCerts :: FilePath -> ReaderT RegistryCtx IO ()
|
renewSslCerts :: FilePath -> ReaderT RegistryCtx IO ()
|
||||||
renewSslCerts cert = do
|
renewSslCerts cert = do
|
||||||
domain <- asks $ registryHostname . appSettings
|
domain <- asks $ registryHostname . appSettings
|
||||||
|
liftIO $ putStrLn $ "DOMAIN: " <> domain
|
||||||
|
liftIO $ putStrLn $ "CERT: " <> cert
|
||||||
void . liftIO $ system [i|certbot renew|]
|
void . liftIO $ system [i|certbot renew|]
|
||||||
void . liftIO $ system [i|cp /etc/letsencrypt/live/#{domain}/fullchain.pem #{cert}|]
|
void . liftIO $ system [i|cp /etc/letsencrypt/live/#{domain}/fullchain.pem #{cert}|]
|
||||||
|
|||||||
Reference in New Issue
Block a user