projects
/
monit-cn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d9a6ac1
)
fix
author
Zeljko Boros
<Zeljko.Boros@carnet.hr>
Fri, 16 Apr 2021 10:46:23 +0000
(12:46 +0200)
committer
Zeljko Boros
<Zeljko.Boros@carnet.hr>
Fri, 16 Apr 2021 10:46:23 +0000
(12:46 +0200)
debian/postrm
patch
|
blob
|
history
diff --git
a/debian/postrm
b/debian/postrm
index
961ffe7
..
cbf0f4c
100755
(executable)
--- a/
debian/postrm
+++ b/
debian/postrm
@@
-22,15
+22,22
@@
case "$1" in
# continue below
;;
# continue below
;;
- *)
+ remove)
+ # kludge
+ rm -f /usr/share/monit-cn/bacula-fd.conf.cn-old
exit 0
;;
exit 0
;;
+
+ *)
+ exit 0
+ ;;
esac
esac
-# Brisemo /etc/monit, ali samo ako paket MONIT nije vise instaliran
+# Brisemo /etc/monit i /usr/share/monit-cn, ali samo ako paket MONIT nije vise instaliran
if [ $(dpkg-query -W -f='${Status}' monit 2> /dev/null | grep -c "ok installed" || true) -ne "0" ]; then
if [ $(dpkg-query -W -f='${Status}' monit 2> /dev/null | grep -c "ok installed" || true) -ne "0" ]; then
- rm -fr /etc/monit
+ echo "Brisem /etc/monit i /usr/share/monit-cn..."
+ rm -fr /etc/monit /usr/share/monit-cn
fi
# dh_installdeb will replace this with shell code automatically
fi
# dh_installdeb will replace this with shell code automatically