Commit d667cd24 authored by Sandeep Kadam's avatar Sandeep Kadam

Updated sed command to work on ubuntu

parent e288229d
......@@ -116,10 +116,10 @@ case "${COMMAND}" in
[ -f ${WP_SETTINGS_PHP} ] && chmod u+w ${WP_SETTINGS_PHP} || true
cp ${WP_DEFAULT_SETTINGS_PHP} ${WP_SETTINGS_PHP}
sed -i '' "/DB_NAME/s/'[^']*'/'${DOCKER_DATABASE}'/2" ${WP_SETTINGS_PHP}
sed -i '' "/DB_HOST/s/'[^']*'/'mysql'/2" ${WP_SETTINGS_PHP}
sed -i '' "/DB_USER/s/'[^']*'/'${DOCKER_DATABASE_USER}'/2" ${WP_SETTINGS_PHP}
sed -i '' "/DB_PASSWORD/s/'[^']*'/'${DOCKER_DATABASE_PASS}'/2" ${WP_SETTINGS_PHP}
sed -i -e "/DB_NAME/s/'[^']*'/'${DOCKER_DATABASE}'/2" ${WP_SETTINGS_PHP}
sed -i -e "/DB_HOST/s/'[^']*'/'mysql'/2" ${WP_SETTINGS_PHP}
sed -i -e "/DB_USER/s/'[^']*'/'${DOCKER_DATABASE_USER}'/2" ${WP_SETTINGS_PHP}
sed -i -e "/DB_PASSWORD/s/'[^']*'/'${DOCKER_DATABASE_PASS}'/2" ${WP_SETTINGS_PHP}
;;
destroy_config)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment