Skip to content

Commit

Permalink
fixup! Fixes #16763: same as parent ticket but for postinst
Browse files Browse the repository at this point in the history
Fixes #16763: same as parent ticket but for postinst
  • Loading branch information
ncharles committed Feb 20, 2020
1 parent d5b0930 commit 55f7762
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion rudder-webapp/SPECS/rudder-webapp.spec
Expand Up @@ -223,7 +223,12 @@ if [ $1 -ne 1 ]
# If the stops fails, it's probably because it was not started
service rudder-jetty stop >&2 > /dev/null || true

rudder package plugin save-status > /tmp/rudder-plugins-upgrade
if [ -x /opt/rudder/bin/rudder-pkg ]
then
/opt/rudder/bin/rudder-pkg plugin save-status > /tmp/rudder-plugins-upgrade
else
rudder package plugin save-status > /tmp/rudder-plugins-upgrade
fi

getfacl --absolute-names --recursive /opt/rudder/etc/hooks.d/ > /tmp/rudder-hooks-upgrade

Expand Down
8 changes: 6 additions & 2 deletions rudder-webapp/debian/preinst
Expand Up @@ -46,8 +46,12 @@ case "$1" in
/etc/init.d/rudder-jetty stop >&2 > /dev/null || true
fi

rudder package plugin save-status > /tmp/rudder-plugins-upgrade

if [ -x /opt/rudder/bin/rudder-pkg ]
then
/opt/rudder/bin/rudder-pkg plugin save-status > /tmp/rudder-plugins-upgrade
else
rudder package plugin save-status > /tmp/rudder-plugins-upgrade
fi

getfacl --absolute-names --recursive /opt/rudder/etc/hooks.d/ > /tmp/rudder-hooks-upgrade

Expand Down

0 comments on commit 55f7762

Please sign in to comment.