Ajout : etc/nginx/site.d/veloc-www
[lhc/ateliers.git] / etc / nginx / site.d / veloc-www-tls / local.sh
1 hint="run before: remote/runit-configure nginx -- $site"
2 assert "sudo test -f /etc/nginx/x509.d/\"$site\"/key.pem" hint
3
4 sudo install -m 664 -o www -g www \
5 "$tool"/var/pub/x509/www.velocampus.net/crt+ca.pem \
6 /etc/nginx/x509.d/"$site"/crt.pem
7
8 sudo rmdir ~www-data/"$site" || true
9 sudo ln -fns "${site%-tls}" ~www-data/"$site"
10