Commit 1af408ec authored by Sandeep Kadam's avatar Sandeep Kadam

Added correct folder path to update wp-config

parent 4acbf00f
......@@ -86,7 +86,7 @@ do
if [ "${SITE_IS_SUBPATH}" = "YES" ] ; then
echo "Update URL in wp-config for site :- ${PROJECT_NAME}";
# Overwrite the site url in wp-config.php file
ssh ${SSH_OWNER}@${_SERVER} "cd ${VM_CORE_PATH}/${RELATIVE_DOCUMENT_ROOT}/ && sed -E -i'' '/(WP_HOME|WP_SITEURL)/d' ${RELATIVE_SETTINGS_SRC}/wp-config.php && ~/bin/wp --path=${VM_CORE_PATH}/${RELATIVE_DOCUMENT_ROOT} config set WP_HOME '${WP_SITE_URL}' && ~/bin/wp --path=${VM_CORE_PATH}/${RELATIVE_DOCUMENT_ROOT} config set WP_SITEURL '${WP_SITE_URL}'";
ssh ${SSH_OWNER}@${_SERVER} "cd ${VM_CORE_PATH}/ && sed -E -i'' '/(WP_HOME|WP_SITEURL)/d' ${RELATIVE_SETTINGS_SRC}/wp-config.php && ~/bin/wp --path=${VM_CORE_PATH}/${RELATIVE_DOCUMENT_ROOT} config set WP_HOME '${WP_SITE_URL}' && ~/bin/wp --path=${VM_CORE_PATH}/${RELATIVE_DOCUMENT_ROOT} config set WP_SITEURL '${WP_SITE_URL}'";
fi;
# stop apache, etc
......
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