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 }