Skip to content

Commit

Permalink
build: fix postremove script bug deleting logrotate conf on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
libvoid committed Oct 16, 2023
1 parent 00a51fa commit 8bd4ab3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packaging/postremove.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh -e
# shellcheck source=/dev/null

[ "$1" != "remove" ] && exit 0 # run this script only on install

if grep -q "debian" /etc/os-release; then
. /usr/share/debconf/confmodule
db_purge
Expand All @@ -17,4 +19,3 @@ rm -f /etc/logrotate.d/sshportal || true
grep -q sshportal /etc/passwd && userdel sshportal
systemctl daemon-reload
systemctl reset-failed

0 comments on commit 8bd4ab3

Please sign in to comment.