Ajout : etc/nginx/site.d/lhc-burette/
[lhc/ateliers.git] / etc / nginx / site.d / lhc-burette / local.sh
diff --git a/etc/nginx/site.d/lhc-burette/local.sh b/etc/nginx/site.d/lhc-burette/local.sh
new file mode 100644 (file)
index 0000000..40b774d
--- /dev/null
@@ -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