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 }