X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Flhc-burette-demo%2Flocal.sh;fp=etc%2Fnginx%2Fsite.d%2Flhc-burette-demo%2Flocal.sh;h=3c03ae088ecb15c9174465dc3066d7625120f335;hb=f04433e59c07c099e6171e199a533f57e71bed22;hp=0000000000000000000000000000000000000000;hpb=c620d51c00b82e2caed368f1dd490e3239c51ec6;p=lhc%2Fateliers.git diff --git a/etc/nginx/site.d/lhc-burette-demo/local.sh b/etc/nginx/site.d/lhc-burette-demo/local.sh new file mode 100644 index 0000000..3c03ae0 --- /dev/null +++ b/etc/nginx/site.d/lhc-burette-demo/local.sh @@ -0,0 +1,9 @@ +hint="run before: 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/demo.burette.heureux-cyclage.org/crt+ca.pem \ + /etc/nginx/x509.d/"$site"/crt.pem +sudo install -m 664 -o www -g www \ + "$tool"/var/pub/x509/demo.burette.heureux-cyclage.org/crt.self-signed.pem \ + /etc/nginx/x509.d/"$site"/user-crt.pem