Project

General

Profile

Revision 30fc561e

Added by Julien Enselme over 7 years ago

Use correct base URL when generating the settings.local.php files

View differences:

bin/d7-all-gen-settings-local.sh
17 17

  
18 18
    echo "Changing ${settings}"
19 19
    chmod 600 "${settings}"
20
    sed "s/\%\%DBUSER\%\%/$db_user/ ; s/\%\%DBNAME\%\%/$db_name/ ; s/\%\%DBPASS\%\%/$db_password/ ; s#\%\%BASE_URL\%\%#$base_url#" < "${d7_settings_local_template}" > "${settings}"
20
    sed "s/\%\%DBUSER\%\%/$db_user/ ; s/\%\%DBNAME\%\%/$db_name/ ; s/\%\%DBPASS\%\%/$db_password/ ; s#^\$base_url.*#\$base_url = '$base_url';#" < "${d7_settings_local_template}" > "${settings}"
21 21
    chmod 400 "${settings}"
22 22
    echo Done
23 23
done

Also available in: Unified diff