Commit c0b5b3ff authored by Sandeep Kadam's avatar Sandeep Kadam

Updated local deployment script to enable vf group theme

parent e607bf93
......@@ -16,8 +16,10 @@ declare -a FILE_NAME_ARRAY=($1)
filename_array_length=${#FILE_NAME_ARRAY[@]};
red="$(tput setaf 1)";
green="$(tput setaf 2)";
norm="$(tput sgr0)"
deploy_status_logfile=${DEPLOYMENT_LOG_MAIN_FOLDER}/${DEPLOYMENT_STATUS_LOGFILE}
norm="$(tput sgr0)";
deploy_status_logfile=${DEPLOYMENT_LOG_MAIN_FOLDER}/${DEPLOYMENT_STATUS_LOGFILE};
current_date_time=$(date '+%d-%b-%Y %H:%M:%S');
server_hostname=`hostname`;
if [ ! -f $deploy_status_logfile ] ; then
......@@ -61,6 +63,11 @@ fi
echo "";
echo "== Ended background deployment script process check =="
echo ""
echo "== Sending deployment log email to admin =="
cat $deploy_status_logfile | mail -s "Group site deployment status log for server [$server_hostname] - $current_date_time" sandeep@ebi.ac.uk
if grep -q "Failed" $deploy_status_logfile ; then
echo "";
echo >&2 "One or more microsite(s) deployment failed, marking build as ${red}failed${norm}; please check the logs in :- '${MICROSITE_DEBUG_LOG_FOLDER}'";
......
......@@ -52,8 +52,8 @@ if [ "${WP_NEED_BLANK_SITE}" = "Yes" ]; then
fi
echo "VF theme - Activating VF theme"
if ! $(wp theme is-active vf-wp); then
wp theme activate "vf-wp"
if ! $(wp theme is-active vf-wp-groups); then
wp theme activate "vf-wp-groups"
fi
# List of Array for default VF plugins
......
......@@ -141,8 +141,8 @@ echo ""
echo "=== VF theme & plugins ==="
echo "VF theme - Activating VF theme"
if ! $(wp theme is-active vf-themes); then
wp theme activate "vf-themes"
if ! $(wp theme is-active vf-wp-groups); then
wp theme activate "vf-wp-groups"
fi
# List of Array for default VF plugins
......@@ -512,7 +512,7 @@ if [ "$MICROSITE_FLAG" -eq "1" ] ; then
# Apply SAML config & other additional configs
PHP=`which php`;
$PHP -f ${MICROSITE_PATH}/bin/scripts/wp_vf_custom_code.php -- path=${DEPLOY_PATH}
$PHP -f ${MICROSITE_PATH}/bin/scripts/wp_vf_custom_code.php -- ${DEPLOY_PATH} ${ENVIRONMENT}
# Clear the cached API calls if any.
trash_ids="$(wp post list --post_type='vf_cache' --format=ids)"
......
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