system: crash report, sometimes even Etc/UTC is gone

In those cases the next firmware update with a base set helps, or
running this manually:

    # opnsense-update -fb
This commit is contained in:
Franco Fichtner 2017-04-25 18:24:07 +02:00
parent 6c0ef526da
commit f7e92bebae

View File

@ -1380,7 +1380,9 @@ function system_timezone_configure($verbose = false)
}
/* apply timezone */
copy(sprintf('/usr/share/zoneinfo/%s', $timezone), '/etc/localtime');
if (file_exists(sprintf('/usr/share/zoneinfo/%s', $timezone))) {
copy(sprintf('/usr/share/zoneinfo/%s', $timezone), '/etc/localtime');
}
if ($verbose) {
echo "done.\n";