Modification : $vm_ -> $local_ .
[lhc/ateliers.git] / etc / nginx / site.d / sympa / local.sh
index fd85c70..5b6dcba 100644 (file)
@@ -1,5 +1,6 @@
-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/sympa.heureux-cyclage.org/crt+ca.pem \
  /etc/nginx/x509.d/"$site"/crt.pem