From 39c0f07fca09aa5b79e18c2397e6eb0fcce4ced4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Zolt=C3=A1n?= Date: Wed, 26 Feb 2025 16:53:21 +0100 Subject: [PATCH] 110-startlogs.sh hotfix --- .metadata | Bin 9456 -> 9456 bytes tools/startup.d/110-startlogs.sh | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.metadata b/.metadata index 81ef96b9d0df75f3ec77507056624d39a94b7318..d0ee0b00df634ad5c1f789dc1b93ce578b0800da 100644 GIT binary patch delta 89 zcmez1`N4Ao7pq{n#r|{#ASiosR~|%fn0!G&a~ delta 89 zcmez1`N4Ao7pvfxP4m+kfZ)cHe>@<1!{iGJlABFfGdOs{H$tS&o3*G # License: GNU/GPL v3+ (https://www.gnu.org/licenses/gpl-3.0.en.html) # +# 2025-02-26 v0.1 +# fix: a silly typo (commandtring) blocked the startup. # 2025-02-02 v0.1 Initial release # Accepted environment variables and their defaults. @@ -90,7 +92,7 @@ else do if [ -n "$service" ]; then # Converts the service's name to an actual running container's name. - container="$("$DOCKER" inspect -f '{{.Name}}' $(cd "$BASE_DIR"; "$DOCKER_COMPOSE" $commandtring ps -q "$service") | "$CUT" -c2-)" + container="$("$DOCKER" inspect -f '{{.Name}}' $(cd "$BASE_DIR"; "$DOCKER_COMPOSE" $commandstring ps -q "$service") | "$CUT" -c2-)" # It will not start a new log if it already exists. if [ -z "$("$PS" auxww | "$GREP" "$DOCKER" | "$GREP" 'logs' | "$GREP" "$container" )" ]; then "$DOCKER" logs -t -f $container >> "$BASE_DIR/$LOGDIR/$service.log" 2>&1 &