Modification : $vm_ -> $local_ .
[lhc/ateliers.git] / etc / nginx / site.d / lhc-www-tls / local.sh
1 sudo test -f /etc/nginx/x509.d/\"$site\"/key.pem ||
2 printf '%s\n' "$(tput rev)run before: remote/runit-configure nginx -- $site$(tput sgr0)" && exit 1
3
4 sudo install -m 664 -o www -g www \
5 "$tool"/var/pub/x509/www.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