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>
This commit is contained in:
Lars Koeller 2004-12-13 18:28:29 +00:00
parent 075b16d4bd
commit daff0ed748
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123943
3 changed files with 19 additions and 3 deletions

View File

@ -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

View File

@ -14,13 +14,19 @@ case "$2" in
-e '}' /etc/services > $TMPFILE
mv -f $TMPFILE /etc/services
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
# Note how to delete UID/GID
USER=bacula
GROUP=${USER}
if pw usershow "${USER}" 2>/dev/null 1>&2; then
echo "To delete Bacula user permanently, use 'pw userdel ${USER}'"
echo "To delete Bacula group permanently, use 'pw groupdel ${GROUP}'"
echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the port"
fi
;;
esac

View File

@ -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