summaryrefslogtreecommitdiffstats
path: root/tmp/post_upgrade_command
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:43:34 -0400
commit636307a5cf76d99a8a767207c675b7e715d0ea22 (patch)
treefdf137c7d243dee537b9501676fcffd6dd2aa671 /tmp/post_upgrade_command
parentc53f1e0c8550d27693200c099148598e8cd21ba6 (diff)
downloadpfsense-636307a5cf76d99a8a767207c675b7e715d0ea22.zip
pfsense-636307a5cf76d99a8a767207c675b7e715d0ea22.tar.gz
Also run mtree check post-upgrade.
Diffstat (limited to 'tmp/post_upgrade_command')
-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