summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtmp/post_upgrade_command5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmp/post_upgrade_command b/tmp/post_upgrade_command
index 672c7f6..4e07a71 100755
--- a/tmp/post_upgrade_command
+++ b/tmp/post_upgrade_command
@@ -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
OpenPOWER on IntegriCloud