X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Fgitweb-tls%2Flocal.sh;h=eed94a464feef8adea99f1e34d3ac4e9a8aff9ae;hp=8a1a8b6164d041502dbf7f0ab38778f500046f28;hb=a11ad78672a096632b15a660509d7dd5f7c5eae5;hpb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583 diff --git a/etc/nginx/site.d/gitweb-tls/local.sh b/etc/nginx/site.d/gitweb-tls/local.sh index 8a1a8b6..eed94a4 100644 --- a/etc/nginx/site.d/gitweb-tls/local.sh +++ b/etc/nginx/site.d/gitweb-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 sggr0)" && 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/git.heureux-cyclage.org/crt+ca.pem \