diff --git a/scripts/deploy-host.sh b/scripts/deploy-host.sh index 9fc65c9..4cfb0e5 100644 --- a/scripts/deploy-host.sh +++ b/scripts/deploy-host.sh @@ -57,6 +57,9 @@ UNIT=/etc/systemd/system/container-$SITE.service podman generate systemd --new --name "$SITE" > "$UNIT" systemctl daemon-reload systemctl enable "container-$SITE.service" >/dev/null 2>&1 || true +WANT=/etc/systemd/system/multi-user.target.wants/container-$SITE.service +mkdir -p "$(dirname "$WANT")" +ln -sf "/etc/systemd/system/container-$SITE.service" "$WANT" 2>/dev/null || true systemctl restart "container-$SITE.service" >/dev/null 2>&1 || podman restart "$SITE" >/dev/null sleep 3