Remvoed the part of updating the clients configs.

pull/350/head
Ruslan Baidan 2021-03-25 15:21:46 +01:00
parent 23effdec6b
commit e54a66088b
No known key found for this signature in database
GPG Key ID: 4B7724C136BF1D89
1 changed files with 5 additions and 10 deletions

View File

@ -1,14 +1,9 @@
version=$(cat ./VERSION.json) version=$(cat ./VERSION.json)
version_affected='{"major":2, "minor":10, "hotfix":3}' version_affected='{"major":2, "minor":10, "hotfix":3}'
if [[ $version == "$version_affected" ]]; then if [[ $version == "$version_affected" ]]; then
for conf_file in /var/www/*/local.php $conf_file='./config/autoload/local.php'
do
if [ -f "$conf_file" ]; then if [ -f "$conf_file" ]; then
sed -i 's/https:\/\/objects.monarc.lu\/api\/v1\//https:\/\/objects.monarc.lu\/api\//g' "$conf_file" sed -i 's/https:\/\/objects.monarc.lu\/api\/v1\//https:\/\/objects.monarc.lu\/api\//g' "$conf_file"
echo "Done for $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 fi
done
fi fi