diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-09-09 15:05:23 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-09-09 15:05:23 +0200 |
commit | d47e8423303a50d1ffaaa2a494f70b99d4c8da55 (patch) | |
tree | 7a4f596cde3b4da70ba551544c3ffbce502e3306 /debian/sync-httpd.postrm | |
parent | 52a09e2f719c023c8c728bdf6bd1e7a8b7fe051b (diff) | |
download | sync-d47e8423303a50d1ffaaa2a494f70b99d4c8da55.tar.gz sync-d47e8423303a50d1ffaaa2a494f70b99d4c8da55.tar.bz2 sync-d47e8423303a50d1ffaaa2a494f70b99d4c8da55.zip |
improve Debian package
Diffstat (limited to 'debian/sync-httpd.postrm')
-rw-r--r-- | debian/sync-httpd.postrm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/sync-httpd.postrm b/debian/sync-httpd.postrm index 31cd456..60aa9a5 100644 --- a/debian/sync-httpd.postrm +++ b/debian/sync-httpd.postrm @@ -6,10 +6,14 @@ if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi +_USERNAME=sync-httpd + case "${1}" in purge) rm -rf /var/lib/sync/httpd/ rm -f /etc/sync/override.conf + dpkg-statoverride --remove /etc/sync/secrets/sync-db.secret.conf + deluser --system --quiet ${_USERNAME} || true ;; remove | upgrade | failed-upgrade | abort-install | abort-upgrade | disappear) ;; |