X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Fsympa%2Flocal.sh;h=5b6dcbab93f80de6d19d2dfdeabafdee4745387c;hp=fd85c70422301e14b9a35bab0fc404c916e471ee;hb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d diff --git a/etc/nginx/site.d/sympa/local.sh b/etc/nginx/site.d/sympa/local.sh index fd85c70..5b6dcba 100644 --- a/etc/nginx/site.d/sympa/local.sh +++ b/etc/nginx/site.d/sympa/local.sh @@ -1,5 +1,6 @@ -local hint="run before: ./vm_remote runit_configure nginx -- $site" -assert "sudo test -f /etc/nginx/x509.d/\"$site\"/key.pem" hint +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 + sudo install -m 664 -o www -g www \ "$tool"/var/pub/x509/sympa.heureux-cyclage.org/crt+ca.pem \ /etc/nginx/x509.d/"$site"/crt.pem