Compare commits

..

2 Commits

2 changed files with 8 additions and 12 deletions

View File

@@ -1,4 +1,8 @@
Dokumentation wird bei Gelegenheit nachgereicht. # template_repository
Wichtig: Link für Lizenz anpassen.

View File

@@ -5,9 +5,9 @@
# Synapse: https://git.techniverse.net/scriptos/livekit-ip-watch.git # Synapse: https://git.techniverse.net/scriptos/livekit-ip-watch.git
# Autor: Patrick Asmus # Autor: Patrick Asmus
# Web: https://www.cleveradmin.de # Web: https://www.cleveradmin.de
# Version: 1.2.1 # Version: 1.2
# Datum: 27.10.2025 # Datum: 27.10.2025
# Modifikation: Funktion "detect_compose_cmd" nachträglich committed. # Modifikation: Funktionen "update_yaml_with_yq" und "update_yaml_fallback" überarbeitet
##################################################### #####################################################
set -euo pipefail set -euo pipefail
@@ -209,14 +209,6 @@ update_yaml_fallback() {
mv "$tmp" "$CONFIG_FILE" 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() { restart_service() {
if [[ "$RUNTIME" == "compose" ]]; then if [[ "$RUNTIME" == "compose" ]]; then
local dir file local dir file