Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Add fusion and server shutdowns to gee-common preinstall. (#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
tst-cjeffries authored Jan 8, 2021
1 parent 97ac23d commit 5b138b8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions earth_enterprise/rpms/opengee-common/snippets/pre-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,36 @@ 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
#-----------------------------------------------------------------
# 8) Check if group and users exist

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
Expand Down

0 comments on commit 5b138b8

Please sign in to comment.