File tree Expand file tree Collapse file tree
package/Linux/gateway/rpm Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55action=" $1 "
66
77if [ -d /run/systemd/system ]; then
8- systemctl daemon-reload
8+ systemctl daemon-reload > /dev/null 2>&1 || true
99fi
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
1414fi
1515
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ if [ "$action" = "upgrade" ] ; then
1414fi
1515
1616if [ -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
1919fi
You can’t perform that action at this time.
0 commit comments