MonarcAppFO/scripts/update_config_variables.sh

10 lines
348 B
Bash
Raw Normal View History

2021-04-23 11:20:41 +02:00
version=$(cat ./VERSION.json)
version_affected='{"major":2, "minor":10, "hotfix":3}'
if [[ $version == "$version_affected" ]]; then
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