X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Flhc-www-tls%2Fconfigure.sh;h=4bc8526b56cebef60e227b19e6110d6ab48d0ebb;hb=2d48a198262604098443c6a90e58b0084600a4d7;hp=50f5f511cc61e4e8983eab08ea744c2022c5833a;hpb=c2a9a967e764ea91c936576dadf97542bd6d4c12;p=lhc%2Fateliers.git diff --git a/etc/nginx/site.d/lhc-www-tls/configure.sh b/etc/nginx/site.d/lhc-www-tls/configure.sh index 50f5f51..4bc8526 100644 --- a/etc/nginx/site.d/lhc-www-tls/configure.sh +++ b/etc/nginx/site.d/lhc-www-tls/configure.sh @@ -1,9 +1,11 @@ #!/bin/sh set -e -f -u -x -sudo rmdir ~www-data/"$site" || true -sudo ln -fns "${site%-tls}" ~www-data/"$site" local hint="run vm_remote nginx_key_send before" assert "sudo test -f /etc/nginx/x509.d/\"$site\"/key.pem" hint sudo install -m 664 -o www -g www \ "$tool"/var/pub/x509/www.heureux-cyclage.org/crt+ca.pem \ /etc/nginx/x509.d/"$site"/crt.pem + +sudo rmdir ~www-data/"$site" || true +sudo ln -fns "${site%-tls}" ~www-data/"$site" +