Ensure systemd unit is enabled for boot
All checks were successful
deploy-myvps-site / deploy (push) Successful in 14s

This commit is contained in:
opencode 2026-11-22 23:26:38 +00:00
parent ea82fa0e4a
commit aa97cb8da4

View file

@ -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