X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fnginx%2Fsite.d%2Flhc-stats-tls%2Flocal.sh;h=cc043809c64b70aa5039a25a8111d9b8e4000ec7;hb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583;hp=da52d3333336b6905ef3ae0c98dc0ec1be5c05dc;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d;p=lhc%2Fateliers.git diff --git a/etc/nginx/site.d/lhc-stats-tls/local.sh b/etc/nginx/site.d/lhc-stats-tls/local.sh index da52d33..cc04380 100644 --- a/etc/nginx/site.d/lhc-stats-tls/local.sh +++ b/etc/nginx/site.d/lhc-stats-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/stats.heureux-cyclage.org/crt+ca.pem \ /etc/nginx/x509.d/"$site"/crt.pem