diff options
-rwxr-xr-x | tmp/post_upgrade_command | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command index 9e3dc2d..672c7f6 100755 --- a/tmp/post_upgrade_command +++ b/tmp/post_upgrade_command @@ -113,3 +113,13 @@ fi if [ -f /usr/local/sbin/php ]; then rm /usr/local/sbin/php fi + +# Fixup permissions on installed files +if [ "${PFSENSETYPE}" = "nanobsd" ]; then + MTREECHKDIR=/tmp/${1}/ +else + MTREECHKDIR=/ +fi +if [ -f ${MTREECHKDIR}etc/pfSense.mtree ]; then + /usr/sbin/mtree -U -e -q -f ${MTREECHKDIR}etc/pfSense.mtree -p ${MTREECHKDIR} > /conf/mtree.log; +fi; |