diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-11-10 13:51:29 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-11-14 07:46:57 -0200 |
commit | cc814aef37698c2cb13862b8285cc09ff666af7e (patch) | |
tree | 07904634f3196b604f67a4aa1939a223bcd44c16 /tmp/post_upgrade_command | |
parent | e0141b7aa9425d6143f613a39fea90dca519885f (diff) | |
download | pfsense-cc814aef37698c2cb13862b8285cc09ff666af7e.zip pfsense-cc814aef37698c2cb13862b8285cc09ff666af7e.tar.gz |
Make it possible to remove a directory on obsoletedfiles
Diffstat (limited to 'tmp/post_upgrade_command')
-rwxr-xr-x | tmp/post_upgrade_command | 2 |
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 |