summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-08-28 10:43:34 -0400
committerjim-p <jimp@pfsense.org>2013-08-28 10:44:24 -0400
commitfa92a6a49e176f1061c81924d9553204ae378511 (patch)
tree52fdbdc1ba38a2a57cc52ed445118a5a92bb4ecd
parentaed005392c61d5824c6982b8f9fb3de7f471ec4b (diff)
downloadpfsense-fa92a6a49e176f1061c81924d9553204ae378511.zip
pfsense-fa92a6a49e176f1061c81924d9553204ae378511.tar.gz
Also run mtree check post-upgrade.
-rwxr-xr-xtmp/post_upgrade_command10
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;
OpenPOWER on IntegriCloud