#!/bin/sh
set -e -f -u -x
-local hint="run vm_remote nginx_configure before"
+local hint="run before: ./vm_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-cyclage.org/crt+ca.pem \
+ "$tool"/var/pub/x509/stats.heureux-cyclage.org/crt+ca.pem \
/etc/nginx/x509.d/"$site"/crt.pem
sudo rmdir ~www-data/"$site" || true