Skip to content

Commit

Permalink
Fixes #12030: Only stop jetty in preinst during upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Jan 23, 2018
1 parent 3a6f629 commit 06547d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion rudder-jetty/SPECS/rudder-jetty.spec
Expand Up @@ -158,7 +158,12 @@ install -m 644 %{SOURCE4} %{buildroot}/opt/rudder/etc/server-roles.d/
# Pre Installation
#=================================================

service rudder-jetty stop
CFRUDDER_FIRST_INSTALL=$1

if [ ${CFRUDDER_FIRST_INSTALL} -ne 1 ]
then
service rudder-jetty stop
fi

# Prepare the migration of /etc/default/rudder-jetty
if [ -e /opt/rudder/etc/rudder-jetty.conf ]
Expand Down
5 changes: 4 additions & 1 deletion rudder-jetty/debian/preinst
Expand Up @@ -17,7 +17,10 @@ set -e
case "$1" in
install|upgrade)

service rudder-jetty stop
if [ "$1" = "upgrade" ]
then
service rudder-jetty stop
fi

# Prepare the migration of /etc/default/rudder-jetty
if [ -f /opt/rudder/etc/rudder-jetty.conf ]; then
Expand Down

0 comments on commit 06547d9

Please sign in to comment.