If upgrading NanoBSD, try to grab the previous timezone file so the zone is preserved on the next boot.
This commit is contained in:
parent
636307a5cf
commit
a41c031694
|
@ -123,3 +123,8 @@ 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;
|
||||
|
||||
# Make sure to preserve existing time zone
|
||||
if [ "${PFSENSETYPE}" = "nanobsd" ] && [ -f /etc/localtime ]; then
|
||||
/bin/cp -p /etc/localtime /tmp/${1}/etc/localtime 2>/dev/null
|
||||
fi
|
||||
|
|
Reference in New Issue