Update script: remove sudo for coturn.

This commit is contained in:
Viyurz 2024-02-15 11:29:18 +01:00
parent 14efc65b88
commit bf02e58448

View file

@ -9,8 +9,7 @@ rel_path="$(dirname "$0")"
function pull { function pull {
[[ "$1" == "coturn" ]] && local sudo="sudo" docker-compose -f "$rel_path/$1/docker-compose.yaml" pull
$sudo docker-compose -f "$rel_path/$1/docker-compose.yaml" pull
} }
@ -21,8 +20,7 @@ function up {
sudo "$rel_path/backup.sh" "$1" --norestart sudo "$rel_path/backup.sh" "$1" --norestart
fi fi
[[ "$1" == "coturn" ]] && local sudo="sudo" docker-compose -f "$rel_path/$1/docker-compose.yaml" up -d
$sudo docker-compose -f "$rel_path/$1/docker-compose.yaml" up -d
} }