diff --git a/PKGBUILD b/PKGBUILD index 6cc1e33..b3a7f18 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,7 +6,7 @@ pkgname=( luzifer-devel luzifer-gui ) -pkgver=0.1.1 +pkgver=0.1.2 pkgrel=1 pkgdesc='System configuration for @luzifer systems' arch=(any) diff --git a/luzifer-base.install b/luzifer-base.install index cd3a3da..4e75283 100644 --- a/luzifer-base.install +++ b/luzifer-base.install @@ -3,11 +3,8 @@ post_install() { } post_upgrade() { - # Enable timesync - systemctl enable --now systemd-timesyncd - # Set NTP servers - ntp_servers=( + local ntp_servers=( ptbtime1.ptb.de ptbtime2.ptb.de ptbtime3.ptb.de @@ -16,7 +13,10 @@ post_upgrade() { ntps1-0.cs.tu-berlin.de ntps1-1.cs.tu-berlin.de ) - sed -E "s/^#?NTP=.*$/NTP=${ntp_servers[@]}/" /etc/systemd/timesyncd.conf + 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"