Use new base.mtree installed by upcoming core package

This commit is contained in:
Renato Botelho 2015-08-17 17:09:35 -03:00
parent c1367bd116
commit df275cbe71

View File

@ -30,13 +30,13 @@ fi
rm -f /root/*.md5 >/dev/null 2>&1
# Fixup permissions on installed files
if [ -f ${ROOT}etc/installed_filesystem.mtree ]; then
if [ -f ${ROOT}usr/local/share/pfSense/base.mtree ]; then
if [ -x "/tmp/mtree.old" ]; then
MTREE_BIN=/tmp/mtree.old
else
MTREE_BIN=/usr/sbin/mtree
fi
${MTREE_BIN} -U -e -q -f ${ROOT}etc/installed_filesystem.mtree -p ${ROOT} > /conf/mtree.log
${MTREE_BIN} -U -e -q -f ${ROOT}usr/local/share/pfSense/base.mtree -p ${ROOT} > /conf/mtree.log
fi
# Make sure to preserve existing time zone