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:
parent
075b16d4bd
commit
daff0ed748
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=123943
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user