vn-ansible/roles/config-tzdata/files/set_timezone.sh

10 lines
383 B
Bash
Raw Normal View History

2023-10-27 12:35:12 +00:00
#!/bin/bash
2023-10-30 10:13:42 +00:00
#echo "Europe" > /etc/timezone
#ln -sf /usr/share/zoneinfo/Europe/Madrid /etc/localtime
echo 'tzdata tzdata/Areas select Europe' | debconf-set-selections
echo 'tzdata tzdata/Zones/Europe select Madrid' | debconf-set-selections
echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections
rm /etc/timezone
rm /etc/localtime
2023-10-27 12:35:12 +00:00
dpkg-reconfigure -f noninteractive tzdata