Modification : $vm_ -> $local_ .
[lhc/ateliers.git] / etc / nginx / site.d / lhc-remorque / local.sh
index 410743e..ee73d00 100644 (file)
@@ -1,6 +1,6 @@
-local hint="run before: ./vm_remote runit_configure nginx -- $site"
-assert "sudo getent passwd wiki-\"$site\" >/dev/null" hint
-assert "sudo test -f ~wiki-$site/etc/ssh/id_rsa" hint
+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
 
 "$tool"/local/apt-get-install ikiwiki \
  libsearch-xapian-perl