From 4d7beeb7fd21ab48773ae9f3dd6384e48dd2cfce Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 11 Aug 2019 14:34:25 +0200 Subject: [PATCH] Configure before start, fix replacement Signed-off-by: Knut Ahlers --- PKGBUILD | 2 +- luzifer-base.install | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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"