summaryrefslogtreecommitdiffstats
path: root/tmp
diff options
context:
space:
mode:
Diffstat (limited to 'tmp')
-rwxr-xr-xtmp/post_upgrade_command2
1 files changed, 2 insertions, 0 deletions
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
OpenPOWER on IntegriCloud