# HG changeset patch # User Franz Glasner # Date 1661942478 -7200 # Node ID 16238e9032a95bd5943c71cd4648ab368fdbc6cf # Parent f62f8ec6a19bc671e2d7d04f1c0af1ace7b5a37b Skip configuring a timezone when there already exists such a file /etc/localtime diff -r f62f8ec6a19b -r 16238e9032a9 sbin/fjail --- a/sbin/fjail Mon Aug 29 16:12:24 2022 +0200 +++ b/sbin/fjail Wed Aug 31 12:41:18 2022 +0200 @@ -353,7 +353,12 @@ sysrc -R "${_mp}" bsdstats_enable=NO # no automatic BSD stats when booting # Timezone to CET - ln -s ../usr/share/zoneinfo/Europe/Berlin "${_mp}/etc/localtime" + if [ ! -f "${_mp}/etc/localtime" ]; then + echo "Setting timezone to Europe/Berlin" + ln -s ../usr/share/zoneinfo/Europe/Berlin "${_mp}/etc/localtime" + else + echo "WARNING: \"${_mp}/etc/localtime\" exists already -- not changed" + fi # XXX FIXME What about hostid in vnet jails (see /etc/rc.d/hostid and /etc/rc.d/hostid_save) }