From e54a66088b505a217e2b8549bddaef815ee02dc0 Mon Sep 17 00:00:00 2001 From: Ruslan Baidan Date: Thu, 25 Mar 2021 15:21:46 +0100 Subject: [PATCH] Remvoed the part of updating the clients configs. --- scripts/update_config_variable.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/scripts/update_config_variable.sh b/scripts/update_config_variable.sh index 22d8fb8..6021b78 100644 --- a/scripts/update_config_variable.sh +++ b/scripts/update_config_variable.sh @@ -1,14 +1,9 @@ version=$(cat ./VERSION.json) version_affected='{"major":2, "minor":10, "hotfix":3}' if [[ $version == "$version_affected" ]]; then - for conf_file in /var/www/*/local.php - do - if [ -f "$conf_file" ]; then - sed -i 's/https:\/\/objects.monarc.lu\/api\/v1\//https:\/\/objects.monarc.lu\/api\//g' "$conf_file" - echo "Done for $conf_file." - else - sed -i 's/https:\/\/objects.monarc.lu\/api\/v1\//https:\/\/objects.monarc.lu\/api\//g' "./config/autoload/local.php" - echo "Done for ./config/autoload/local.php" - fi - done + $conf_file='./config/autoload/local.php' + if [ -f "$conf_file" ]; then + sed -i 's/https:\/\/objects.monarc.lu\/api\/v1\//https:\/\/objects.monarc.lu\/api\//g' "$conf_file" + echo "Done for $conf_file" + fi fi