Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #12030: Only stop jetty in preinst during upgrades #1471

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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