Date: Mon, 4 Dec 2017 11:29:46 +0100 From: Erwan David <erwan@rail.eu.org> To: freebsd-questions@freebsd.org Subject: Re: tzsetup without menu? Message-ID: <770818ba-84da-2b72-75fa-46788621986d@rail.eu.org> In-Reply-To: <op.zapvf6nzg7njmm@workstation> References: <776CD363-26A1-4628-B21E-2CA266609BAE@luckyhands.nl> <op.zapvf6nzg7njmm@workstation>
next in thread | previous in thread | raw e-mail | index | archive | help
Le 12/04/17 à 11:01, Michael Ross a écrit : > Am .12.2017, 10:32 Uhr, schrieb Remy Zandwijk <remy@luckyhands.nl>: > >> The tzsetup manual page on 11.1-RELEASE-p4 says: >> >> It is possible to short-circuit the menu system by specifying the >> location of a zoneinfo_file or the name of the zoneinfo_name on the >> command line; this is intended mainly for pre-configured >> installation >> scripts or people who know which zoneinfo they want to install. >> >> >> However, when I run the command like this, I still get the menu: >> >> tzsetup -s /usr/share/zoneinfo/Europe/Amsterdam >> >> >> >> Am I doing it wrong or does the tzsetup command not act like documented? >> >> >> -Remy >> > > I think you could just copy the zonefile > > # md5 /usr/share/zoneinfo/Europe/Berlin /etc/localtime > MD5 (/usr/share/zoneinfo/Europe/Berlin) = > 4790e83465681cefbf852aed265354bf > MD5 (/etc/localtime) = 4790e83465681cefbf852aed265354bf > > > thus > > cp /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime > echo "Europe/Amsterdam" > /var/db/zoneinfo > Hi, Is there a reason to prefer cp to ln -s ? With ln -s when timezone definition gets changed in the system, the localtime gets the modification. Ansible timezone module uses a symbolic link.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?770818ba-84da-2b72-75fa-46788621986d>