luzifer/luzifer-base.install
Knut Ahlers 4d7beeb7fd
Configure before start, fix replacement
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-08-11 14:34:44 +02:00

28 lines
576 B
Text

post_install() {
post_upgrade
}
post_upgrade() {
# Set NTP servers
local ntp_servers=(
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
# 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
}