summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-11-10 13:51:29 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-11-14 07:46:57 -0200
commitcc814aef37698c2cb13862b8285cc09ff666af7e (patch)
tree07904634f3196b604f67a4aa1939a223bcd44c16
parente0141b7aa9425d6143f613a39fea90dca519885f (diff)
downloadpfsense-cc814aef37698c2cb13862b8285cc09ff666af7e.zip
pfsense-cc814aef37698c2cb13862b8285cc09ff666af7e.tar.gz
Make it possible to remove a directory on obsoletedfiles
-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