tzsetup without menu?
Remy Zandwijk
remy at luckyhands.nl
Mon Dec 4 10:09:16 UTC 2017
>> 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
Thanks, that seems to work(around).
But still: either the documentation is wrong or the command has a bug.
-Remy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3858 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20171204/bd8d063f/attachment.bin>
More information about the freebsd-questions
mailing list