Skip to content

Commit 4f33aed

Browse files
committed
build: remove redundant prerm commands
1 parent 494a618 commit 4f33aed

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

packaging/debian/prerm

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,20 @@ case "$1" in
1616
rm -fr /var/log/mamonsu
1717
rm -fr /var/run/mamonsu
1818
rm -fr /var/lib/mamonsu
19-
rm -f /etc/mamonsu/agent.conf
20-
rm -rf /etc/mamonsu/plugins
2119
;;
2220
*)
2321
echo "prerm called with unknown argument \`$1'" >&2
2422
exit 1
2523
esac
24+
25+
#DEBHELPER#
26+
27+
case "$1" in
28+
remove)
29+
type systemctl > /dev/null 2>&1 && rm /etc/init.d/mamonsu || :
30+
type systemctl > /dev/null 2>&1 && systemctl daemon-reload || :
31+
;;
32+
*)
33+
;;
34+
esac
35+

0 commit comments

Comments
 (0)