From 5b138b852ef1b21d65536df13c167fa3451edda5 Mon Sep 17 00:00:00 2001 From: tst-cjeffries <44170038+tst-cjeffries@users.noreply.github.com> Date: Fri, 8 Jan 2021 17:02:43 -0600 Subject: [PATCH] Add fusion and server shutdowns to gee-common preinstall. (#1881) --- .../opengee-common/snippets/pre-install.sh | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/earth_enterprise/rpms/opengee-common/snippets/pre-install.sh b/earth_enterprise/rpms/opengee-common/snippets/pre-install.sh index e713b78b9e..fe006ef66a 100755 --- a/earth_enterprise/rpms/opengee-common/snippets/pre-install.sh +++ b/earth_enterprise/rpms/opengee-common/snippets/pre-install.sh @@ -51,6 +51,19 @@ remove_nonlink_directories() remove_nonlink_directory "$BASEINSTALLDIR_OPT/gehttpd/htdocs/shared_assets/docs" 1 } +shutdown_gefusion() +{ + if [ -f /etc/init.d/gefusion ]; then + service gefusion stop + fi +} + +shutdown_geserver() +{ + if [ -f /etc/init.d/geserver ]; then + service geserver stop + fi +} #----------------------------------------------------------------- # Main Function #----------------------------------------------------------------- @@ -58,6 +71,16 @@ remove_nonlink_directories() check_group +# Shutdown Fusion and Server +# NOTE: As of 5.3.7 we need to shutdown Fusion and Server before installing/upgrading the common +# distributable despite having a shutdown before the individual Fusion and Server installations/upgrades. +# This is necessary due to possible binary incompatibilities when doing a full upgrade of OpenGEE. +# Do not remove these shutdowns until all utilities necessary to start/shutdown Fusion and Server +# have been decoupled from the common distributable. + +shutdown_gefusion +shutdown_geserver + # On Red Hat, only if we are going to install, remove some directories in the # pre-install stage, so cpio can carry group name if needed. Skip on upgrade. if [ "$1" != "1" ]; then