deploy-remote: strip systemd bullet from frankbook unit resolution
This commit is contained in:
@@ -930,7 +930,7 @@ VM_SEED
|
||||
set -euo pipefail
|
||||
SVC="${1:?service required}"
|
||||
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; }
|
||||
systemctl --user restart "$unit"
|
||||
sleep 3
|
||||
|
||||
Reference in New Issue
Block a user