Commit a8234560 authored by Sandeep Kadam's avatar Sandeep Kadam

Updated condition check if variable exists

parent 7551d8b3
......@@ -83,6 +83,9 @@ do
ssh ${SSH_OWNER}@${_SERVER} "rm -rf ${VM_CORE_PATH}/${USER_FILES} || true";
ssh ${SSH_OWNER}@${_SERVER} "ln -svf ${USER_FILES_SYMLINK} ${VM_CORE_PATH}/${USER_FILES}";
# Check if deployment is in subpath url
if [ -z ${SITE_IS_SUBPATH+x} ]; then SITE_IS_SUBPATH="NO"; fi
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
......
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