X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Flhc-www-tls%2Flocal.sh;h=be4604c18acc66794bece57a3d94f838a20892cf;hp=aed75392a8467346eb985f926a9286ba9284fae2;hb=a11ad78672a096632b15a660509d7dd5f7c5eae5;hpb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583 diff --git a/etc/nginx/site.d/lhc-www-tls/local.sh b/etc/nginx/site.d/lhc-www-tls/local.sh index aed7539..be4604c 100644 --- a/etc/nginx/site.d/lhc-www-tls/local.sh +++ b/etc/nginx/site.d/lhc-www-tls/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/www.heureux-cyclage.org/crt+ca.pem \