Skip to content

Commit ee7909a

Browse files
committed
.
1 parent bf5a741 commit ee7909a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

package/Linux/gateway/rpm/postrm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ set -e
55
action="$1"
66

77
if [ -d /run/systemd/system ]; then
8-
systemctl daemon-reload
8+
systemctl daemon-reload >/dev/null 2>&1 || true
99
fi
1010

11-
# Only do complete clean-up on purge.
12-
if [ "$action" != "purge" ] ; then
11+
# Only do complete clean-up on final erase ($1 == 0); upgrades pass $1 >= 1.
12+
if [ "$action" -ne 0 ] ; then
1313
exit 0
1414
fi
1515

package/Linux/gateway/rpm/prerm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ if [ "$action" = "upgrade" ] ; then
1414
fi
1515

1616
if [ -d /run/systemd/system ]; then
17-
systemctl stop devolutions-gateway >/dev/null 2>&1
18-
systemctl disable devolutions-gateway >/dev/null 2>&1
17+
systemctl stop devolutions-gateway >/dev/null 2>&1 || true
18+
systemctl disable devolutions-gateway >/dev/null 2>&1 || true
1919
fi

0 commit comments

Comments
 (0)