ef7611afdebc35da4f103df7c3c6da99b6a7a66b
[lhc/ateliers.git] / etc / nginx / site.d / lhc-questionnaires-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/questionnaires.heureux-cyclage.org/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