X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Flhc-www-tls%2Fconfigure.sh;h=5fc0ce122850a1cf9106110578fa9b19f0400580;hp=50f5f511cc61e4e8983eab08ea744c2022c5833a;hb=22f04b9fac14adc3d3fc98273ba126c3a51792c3;hpb=de0435e3d96f9205fd7a27809d2004d5737469fa diff --git a/etc/nginx/site.d/lhc-www-tls/configure.sh b/etc/nginx/site.d/lhc-www-tls/configure.sh index 50f5f51..5fc0ce1 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" +local hint="run before: ./vm_remote runit_configure nginx -- $site" 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" +