X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Flhc-remorque%2Flocal.sh;h=ee73d00c75e619ea774ad1367f1e55d7aac9e18b;hp=410743e03d7049741a401153221b3552eb8d4847;hb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d diff --git a/etc/nginx/site.d/lhc-remorque/local.sh b/etc/nginx/site.d/lhc-remorque/local.sh index 410743e..ee73d00 100644 --- a/etc/nginx/site.d/lhc-remorque/local.sh +++ b/etc/nginx/site.d/lhc-remorque/local.sh @@ -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