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=aed75392a8467346eb985f926a9286ba9284fae2;hp=5fc0ce122850a1cf9106110578fa9b19f0400580;hb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d diff --git a/etc/nginx/site.d/lhc-www-tls/local.sh b/etc/nginx/site.d/lhc-www-tls/local.sh index 5fc0ce1..aed7539 100644 --- a/etc/nginx/site.d/lhc-www-tls/local.sh +++ b/etc/nginx/site.d/lhc-www-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 sgr0)" && exit 1 + sudo install -m 664 -o www -g www \ "$tool"/var/pub/x509/www.heureux-cyclage.org/crt+ca.pem \ /etc/nginx/x509.d/"$site"/crt.pem