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