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