X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Fgitweb-tls%2Flocal.sh;h=8a1a8b6164d041502dbf7f0ab38778f500046f28;hp=e278d17f987a68bf39447315a258109eb5c3ea38;hb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d diff --git a/etc/nginx/site.d/gitweb-tls/local.sh b/etc/nginx/site.d/gitweb-tls/local.sh index e278d17..8a1a8b6 100644 --- a/etc/nginx/site.d/gitweb-tls/local.sh +++ b/etc/nginx/site.d/gitweb-tls/local.sh @@ -1,7 +1,6 @@ -#!/bin/sh -set -e -f -u -x -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 sggr0)" && exit 1 + sudo install -m 664 -o www -g www \ "$tool"/var/pub/x509/git.heureux-cyclage.org/crt+ca.pem \ /etc/nginx/x509.d/"$site"/crt.pem