From cc814aef37698c2cb13862b8285cc09ff666af7e Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 10 Nov 2014 13:51:29 -0200 Subject: Make it possible to remove a directory on obsoletedfiles --- tmp/post_upgrade_command | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tmp') diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command index bd4146d..de4c286 100755 --- a/tmp/post_upgrade_command +++ b/tmp/post_upgrade_command @@ -45,6 +45,8 @@ if [ "${PFSENSETYPE}" != "nanobsd" -a -f /etc/pfSense.obsoletedfiles ]; then for f in $(cat /etc/pfSense.obsoletedfiles); do if [ -n "${f}" -a -f "${f}" ]; then rm -f ${f} + elif [ -n "${f}" -a -d "${f}" ]; then + rm -rf ${f} fi done fi -- cgit v1.1