Modification : $vm_ -> $local_ .
[lhc/ateliers.git] / etc / nginx / site.d / lhc-www-tls / local.sh
index 5fc0ce1..aed7539 100644 (file)
@@ -1,7 +1,6 @@
-#!/bin/sh
-set -e -f -u -x
-local hint="run before: ./vm_remote runit_configure nginx -- $site"
-assert "sudo test -f /etc/nginx/x509.d/\"$site\"/key.pem" hint
+sudo test -f /etc/nginx/x509.d/\"$site\"/key.pem ||
+printf '%s\n' "$(tput rev)run before: remote/runit-configure nginx -- $site$(tput sgr0)" && exit 1
+
 sudo install -m 664 -o www -g www \
  "$tool"/var/pub/x509/www.heureux-cyclage.org/crt+ca.pem \
  /etc/nginx/x509.d/"$site"/crt.pem