Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

update.sh on Podman: the last words leave out the container id

milind-soni08df86bec134
diff --git a/deploy/update.sh b/deploy/update.sh
index f29c061305..62342092e4 100755
--- a/deploy/update.sh
+++ b/deploy/update.sh
@@ -144,8 +144,8 @@ podman_compose() {
shift 2
podman exec "$SERVER_UNIT" "$@" </dev/null
;;
- # The container's own lines, not systemd's about it.
- logs) journalctl --user -u "$SERVER_UNIT.service" -t "$SERVER_UNIT" -n 40 -o cat --no-pager ;;
+ # The container's own lines: not systemd's about it, nor the container id Podman prints as it starts one.
+ logs) journalctl --user -u "$SERVER_UNIT.service" -t "$SERVER_UNIT" -n 40 -o cat --no-pager | grep -Ev '^[0-9a-f]{64}$' ;;
*) return 1 ;;
esac
}