X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Fsympa%2Flocal.sh;h=2a2f2320968f84f3922ed7ec9a7e1eef35b603fa;hp=5b6dcbab93f80de6d19d2dfdeabafdee4745387c;hb=82a43a9c95892ecfa8bad1a72b490ad0bf60cd3b;hpb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583 diff --git a/etc/nginx/site.d/sympa/local.sh b/etc/nginx/site.d/sympa/local.sh index 5b6dcba..2a2f232 100644 --- a/etc/nginx/site.d/sympa/local.sh +++ b/etc/nginx/site.d/sympa/local.sh @@ -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/sympa.heureux-cyclage.org/crt+ca.pem \