diff --git a/hosts/jupiter/users/storm/configs/console/podman/ntfy/entrypoint.sh b/hosts/jupiter/users/storm/configs/console/podman/ntfy/entrypoint.sh index 3af46bc..7e8553e 100644 --- a/hosts/jupiter/users/storm/configs/console/podman/ntfy/entrypoint.sh +++ b/hosts/jupiter/users/storm/configs/console/podman/ntfy/entrypoint.sh @@ -7,7 +7,7 @@ mkfifo "$PIPE" ntfy serve > "$PIPE" 2>&1 & PID=$! -grep -q "INFO Listening on :80\[http\]" < "$PIPE" +grep -q -m 1 "INFO Listening on :80\[http\]" < "$PIPE" kill "$PID" wait "$PID" || true rm -f "$PIPE" diff --git a/packages/docker/transmission-protonvpn/entrypoint.sh b/packages/docker/transmission-protonvpn/entrypoint.sh index 5ba5325..dc38baf 100644 --- a/packages/docker/transmission-protonvpn/entrypoint.sh +++ b/packages/docker/transmission-protonvpn/entrypoint.sh @@ -70,7 +70,7 @@ mkfifo "$CAT_PIPE" "$GREP_PIPE" tee "$CAT_PIPE" "$GREP_PIPE" < "$PIPE" > /dev/null & cat "$CAT_PIPE" & -grep -qm1 "Serving RPC and Web requests on 0.0.0.0:9091" < "$GREP_PIPE" +grep -q -m 1 "Serving RPC and Web requests on 0.0.0.0:9091" < "$GREP_PIPE" rpc_path="$(jq -r '.["rpc-url"]' /etc/transmission/settings.json)" rpc_url="http://127.0.0.1:9091${rpc_path}rpc/"