Correction : vm_{hosted,remote} : chemins et noms .
[lhc/ateliers.git] / etc / nginx / site.d / lhc-www-tls / configure.sh
1 #!/bin/sh
2 set -e -f -u -x
3 sudo rmdir ~www-data/"$site" || true
4 sudo ln -fns "${site%-tls}" ~www-data/"$site"
5 local hint="run vm_remote nginx_key_send before"
6 assert "sudo test -f /etc/nginx/x509.d/\"$site\"/key.pem" hint
7 sudo install -m 664 -o www -g www \
8 "$tool"/var/pub/x509/www.heureux-cyclage.org/crt+ca.pem \
9 /etc/nginx/x509.d/"$site"/crt.pem