From 4322fa793521bbb19e3606b18b28adf874af58c8 Mon Sep 17 00:00:00 2001 From: lillian-b <146143737+lillian-b@users.noreply.github.com> Date: Tue, 26 Mar 2024 18:11:29 -0400 Subject: [PATCH] I don't think this ever worked --- hosts/www.hacklab.to/nginx-tls-deploy.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hosts/www.hacklab.to/nginx-tls-deploy.sh b/hosts/www.hacklab.to/nginx-tls-deploy.sh index dd95375..3e0e8be 100644 --- a/hosts/www.hacklab.to/nginx-tls-deploy.sh +++ b/hosts/www.hacklab.to/nginx-tls-deploy.sh @@ -1,7 +1,8 @@ #!/bin/sh -nginx-tls-deploy.sh_deploy() { - cp -r /root/.acme.sh/hacklab.to_ecc/ /etc/nginx/tls/hacklab.to/ - chown -R nginx:nginx /etc/nginx/tls/ - nginx -s reload +nginx-tls-deploy_deploy() { + mv /etc/nginx/tls/hacklab.to{,.old} + cp -r /root/.acme.sh/hacklab.to_ecc/ /etc/nginx/tls/hacklab.to + chown -R nginx:nginx /etc/nginx/tls/ + nginx -s reload }