From bf02e58448b5bbb58821a6ca24a144ce8dc19982 Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Thu, 15 Feb 2024 11:29:18 +0100 Subject: [PATCH] Update script: remove sudo for coturn. --- update.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/update.sh b/update.sh index c72df30..eaa7464 100755 --- a/update.sh +++ b/update.sh @@ -9,8 +9,7 @@ rel_path="$(dirname "$0")" function pull { - [[ "$1" == "coturn" ]] && local sudo="sudo" - $sudo docker-compose -f "$rel_path/$1/docker-compose.yaml" pull + docker-compose -f "$rel_path/$1/docker-compose.yaml" pull } @@ -21,8 +20,7 @@ function up { sudo "$rel_path/backup.sh" "$1" --norestart fi - [[ "$1" == "coturn" ]] && local sudo="sudo" - $sudo docker-compose -f "$rel_path/$1/docker-compose.yaml" up -d + docker-compose -f "$rel_path/$1/docker-compose.yaml" up -d }