X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Flhc-burette%2Flocal.sh;fp=etc%2Fnginx%2Fsite.d%2Flhc-burette%2Flocal.sh;h=40b774dde862fe4f994a06550f3ed61ed30f38fd;hp=0000000000000000000000000000000000000000;hb=cc9cc7a16850c8eaffd83cff7200d5516164b9f7;hpb=1bad4d66b1586a47f4148ab27cecbc4fa71d89c0 diff --git a/etc/nginx/site.d/lhc-burette/local.sh b/etc/nginx/site.d/lhc-burette/local.sh new file mode 100644 index 0000000..40b774d --- /dev/null +++ b/etc/nginx/site.d/lhc-burette/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/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/burette.heureux-cyclage.org/crt.self-signed.pem \ + /etc/nginx/x509.d/"$site"/user-crt.pem