Correction : {host,local,remote}/ : duplicity + MySQL.
[lhc/ateliers.git] / etc / nginx / site.d / lhc-remorque / local.sh
index ee73d00..0824349 100644 (file)
@@ -1,6 +1,6 @@
-sudo test -f /etc/nginx/x509.d/\"$site\"/key.pem &&
-sudo test -f ~wiki-$site/etc/ssh/id_rsa ||
-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
+assert "sudo test -f ~wiki-$site/etc/ssh/id_rsa" hint
 
 "$tool"/local/apt-get-install ikiwiki \
  libsearch-xapian-perl