mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Make it possible to remove a directory on obsoletedfiles
This commit is contained in:
parent
e0141b7aa9
commit
cc814aef37
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user