[pkg-bacula-commits] [bacula] 02/02: delete the autogenerated password file on purge

Carsten Leonhardt leo at moszumanska.debian.org
Tue Aug 30 11:01:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

leo pushed a commit to branch migrate-files
in repository bacula.

commit 6e8939b1ec587d950079cf338a8ba352fbbf7cea
Author: Carsten Leonhardt <leo at debian.org>
Date:   Tue Aug 30 12:59:35 2016 +0200

    delete the autogenerated password file on purge
    
    To cleanly uninstall bacula-common without leaving files behind it
    suffices to delete the autogenerated password file, dpkg will handle
    the rest.
---
 debian/bacula-common.postrm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/bacula-common.postrm b/debian/bacula-common.postrm
index bebf9ee..21a4fb8 100644
--- a/debian/bacula-common.postrm
+++ b/debian/bacula-common.postrm
@@ -6,7 +6,7 @@ set -e
 case "$1" in
 	purge)
 		rm -rf /run/bacula
-		rmdir /etc/bacula > /dev/null || echo "Warning: /etc/bacula not empty, not removing" >&2
+		rm -f /etc/bacula/common_default_passwords
 		rm -rf /var/log/bacula
 		rm -rf /var/lib/bacula
 	;;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bacula/bacula.git



More information about the pkg-bacula-commits mailing list