diff options
author | lkoeller <lkoeller@FreeBSD.org> | 2004-12-13 18:28:29 +0000 |
---|---|---|
committer | lkoeller <lkoeller@FreeBSD.org> | 2004-12-13 18:28:29 +0000 |
commit | 335ecf579b72fd3fd28193ae6174a9a8f186a33d (patch) | |
tree | 5f6149f9d981d9e4ed0fb9e1dd43433744df83d9 /sysutils/bacula-server/pkg-deinstall.client | |
parent | e932028c197f7be215451033fd0ca9d0bc5e0ede (diff) | |
download | FreeBSD-ports-335ecf579b72fd3fd28193ae6174a9a8f186a33d.zip FreeBSD-ports-335ecf579b72fd3fd28193ae6174a9a8f186a33d.tar.gz |
o) Don't report deinstall message (manually deletion of directory)
if it's useless, i.e. the dir could be removed automatically.
Submitted by: Kris Kennaway <kris@obsecurity.org>
Diffstat (limited to 'sysutils/bacula-server/pkg-deinstall.client')
-rw-r--r-- | sysutils/bacula-server/pkg-deinstall.client | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysutils/bacula-server/pkg-deinstall.client b/sysutils/bacula-server/pkg-deinstall.client index a3c5e5a..cadbda5 100644 --- a/sysutils/bacula-server/pkg-deinstall.client +++ b/sysutils/bacula-server/pkg-deinstall.client @@ -14,6 +14,11 @@ case "$2" in -e '}' /etc/services > $TMPFILE mv -f $TMPFILE /etc/services - echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port" + if [ -d ${BACULA_DIR} ]; then + rmdir ${BACULA_DIR}; + fi + if [ -d ${BACULA_DIR} ]; then + echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port" + fi ;; esac |