Correction : {host,local,remote}/ : duplicity + MySQL.
[lhc/ateliers.git] / etc / nginx / site.d / lhc-questionnaires-tls / local.sh
index 2219391..ef7611a 100644 (file)
@@ -1,5 +1,5 @@
-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
+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/questionnaires.heureux-cyclage.org/crt+ca.pem \