luzifer/luzifer-base.install

29 lines
576 B
Text
Raw Normal View History

2019-08-11 11:57:50 +00:00
post_install() {
post_upgrade
}
post_upgrade() {
# Set NTP servers
local ntp_servers=(
2019-08-11 11:57:50 +00:00
ptbtime1.ptb.de
ptbtime2.ptb.de
ptbtime3.ptb.de
ntp1.lrz.de
ntp3.lrz.de
ntps1-0.cs.tu-berlin.de
ntps1-1.cs.tu-berlin.de
)
sed -i -E "s/^#?NTP=.*$/NTP=$(echo ${ntp_servers[@]})/" /etc/systemd/timesyncd.conf
# Enable timesync
systemctl enable --now systemd-timesyncd
2019-08-11 11:57:50 +00:00
# Set local time
ln -sf /usr/share/zoneinfo/Europe/Berlin "/etc/localtime"
# Enable en_US locale
echo "LANG=en_US.UTF-8" >/etc/locale.conf
sed 's/#en_US/en_US/' -i /etc/locale.gen
locale-gen
}