MonarcAppFO/scripts/update_config_variables.sh

8 lines
198 B
Bash
Executable File

#! /usr/bin/env bash
conf_file='./config/autoload/local.php'
if [ -f "$conf_file" ]; then
sed -E -i "s/'mospApiUrl' => (.*)\/v1/'mospApiUrl' => \1/g" "$conf_file"
echo "Done for $conf_file"
fi