Seed v4 staging: status line prints one unit state (is-enabled exits 1 on disabled)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
7b79ef0957
commit
b2e0132f82
1 changed files with 2 additions and 2 deletions
|
|
@ -30,8 +30,8 @@ remote_status() {
|
|||
systemctl is-active '"$BUILD_UNIT"' >/dev/null 2>&1 && s="running (unit active)"
|
||||
last=""; [ -f /root/v4/build.log ] && last=$(grep -E "build running|build finished|FAILED|DONE|error\[" /root/v4/build.log | tail -1)
|
||||
inst="not installed"; [ -x /opt/igneum/v4/bin/igneumd ] && inst="installed $(head -1 /root/v4/out/version.txt 2>/dev/null)"
|
||||
u4=$(systemctl is-enabled igneumd-v4 2>/dev/null || echo absent); a4=$(systemctl is-active igneumd-v4 2>/dev/null || true)
|
||||
u3=$(systemctl is-enabled igneumd 2>/dev/null || echo absent); a3=$(systemctl is-active igneumd 2>/dev/null || true)
|
||||
u4=$(systemctl is-enabled igneumd-v4 2>/dev/null || true); [ -n "$u4" ] || u4=absent; a4=$(systemctl is-active igneumd-v4 2>/dev/null || true)
|
||||
u3=$(systemctl is-enabled igneumd 2>/dev/null || true); [ -n "$u3" ] || u3=absent; a3=$(systemctl is-active igneumd 2>/dev/null || true)
|
||||
echo "build=$s | $last | v4: $inst, unit igneumd-v4 $u4/$a4 | v3: unit igneumd $u3/$a3"'
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue