|
|
|
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ "${remote_is_docker}" != "yes" ]; then |
|
|
|
|
|
|
|
|
if [ "${use_maintenance_mode}" = "yes" ]; then |
|
|
if ssh ${remote_ssh_string} "wp option patch update wpmm_settings general status 1 --path=${remote_wp_path}"; then |
|
|
if ssh ${remote_ssh_string} "wp option patch update wpmm_settings general status 1 --path=${remote_wp_path}"; then |
|
|
echo maintenance mode activated |
|
|
echo maintenance mode activated |
|
|
else |
|
|
else |
|
|
|
|
|
|
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ "${remote_is_docker}" != "yes" ]; then |
|
|
|
|
|
|
|
|
if [ "${use_maintenance_mode}" = "yes" ]; then |
|
|
if ssh ${remote_ssh_string} "wp option patch update wpmm_settings general status 0 --path=${remote_wp_path}"; then |
|
|
if ssh ${remote_ssh_string} "wp option patch update wpmm_settings general status 0 --path=${remote_wp_path}"; then |
|
|
echo maintenance mode deactivated |
|
|
echo maintenance mode deactivated |
|
|
else |
|
|
else |
|
|
|
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ "${remote_ssh_string}" = "staging" ]; then |
|
|
|
|
|
|
|
|
if [ "${restart_remote_varnish}" = "yes" ]; then |
|
|
set -x |
|
|
set -x |
|
|
ssh federal sudo service varnish restart |
|
|
|
|
|
set +x |
|
|
|
|
|
fi |
|
|
|
|
|
if [ "${remote_ssh_string}" = "prod" ]; then |
|
|
|
|
|
set -x |
|
|
|
|
|
ssh federal sudo service varnish restart |
|
|
|
|
|
set +x |
|
|
|
|
|
fi |
|
|
|
|
|
if [ "${remote_ssh_string}" = "network" ]; then |
|
|
|
|
|
set -x |
|
|
|
|
|
ssh network sudo service varnish restart |
|
|
|
|
|
|
|
|
ssh "${sudo_remote_ssh_string}" sudo service varnish restart |
|
|
set +x |
|
|
set +x |
|
|
fi |
|
|
fi |