From 636307a5cf76d99a8a767207c675b7e715d0ea22 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 28 Aug 2013 10:43:34 -0400 Subject: [PATCH] Also run mtree check post-upgrade. --- tmp/post_upgrade_command | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command index 9e3dc2d69a..672c7f6825 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;