deploy-remote: strip systemd bullet from frankbook unit resolution

This commit is contained in:
Frank committed 2026-09-01 16:18:23 -07:00
1 parent f1171b99cc
commit d2ef56442d
1 file changed
+1 -1
+1 -1
View File
@@ -930,7 +930,7 @@ VM_SEED
set -euo pipefail set -euo pipefail
SVC="${1:?service required}" SVC="${1:?service required}"
systemctl --user daemon-reload systemctl --user daemon-reload
unit="$(systemctl --user list-units --all --no-legend "${SVC}.service" "container-${SVC}.service" 2>/dev/null | head -n1 | awk '{print $1}')" unit="$(systemctl --user list-units --all --no-legend "${SVC}.service" "container-${SVC}.service" 2>/dev/null | sed 's/^● //' | head -n1 | awk '{print $1}')"
[ -n "$unit" ] || { echo "FAIL: no generated systemd unit for $SVC" >&2; exit 1; } [ -n "$unit" ] || { echo "FAIL: no generated systemd unit for $SVC" >&2; exit 1; }
systemctl --user restart "$unit" systemctl --user restart "$unit"
sleep 3 sleep 3