From 189bd41ea1926506cd25592aee032f586fd88689 Mon Sep 17 00:00:00 2001 From: scriptos Date: Mon, 27 Oct 2025 20:33:38 +0100 Subject: [PATCH] =?UTF-8?q?Funktion=20"detect=5Fcompose=5Fcmd"=20nachtr?= =?UTF-8?q?=C3=A4glich=20committed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- livekit-ip-watch.v1.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/livekit-ip-watch.v1.sh b/livekit-ip-watch.v1.sh index 1c7b83b..d6c3751 100644 --- a/livekit-ip-watch.v1.sh +++ b/livekit-ip-watch.v1.sh @@ -5,9 +5,9 @@ # Synapse: https://git.techniverse.net/scriptos/livekit-ip-watch.git # Autor: Patrick Asmus # Web: https://www.cleveradmin.de -# Version: 1.2 +# Version: 1.2.1 # Datum: 27.10.2025 -# Modifikation: Funktionen "update_yaml_with_yq" und "update_yaml_fallback" überarbeitet +# Modifikation: Funktion "detect_compose_cmd" nachträglich committed. ##################################################### set -euo pipefail @@ -209,6 +209,14 @@ update_yaml_fallback() { mv "$tmp" "$CONFIG_FILE" } +detect_compose_cmd() { + if command -v docker-compose >/dev/null 2>&1; then + echo "docker-compose" + else + echo "docker compose" + fi +} + restart_service() { if [[ "$RUNTIME" == "compose" ]]; then local dir file @@ -305,4 +313,4 @@ main() { fi } -main "$@" +main "$@" \ No newline at end of file