Remvoed the part of updating the clients configs.
parent
23effdec6b
commit
e54a66088b
|
@ -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."
|
fi
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue