summaryrefslogtreecommitdiff
path: root/install-VM-grongo
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2016-06-24 09:31:22 +0200
committerPeter Palfrader <peter@palfrader.org>2016-06-24 09:31:22 +0200
commit49276c10956c76ef7e74c39fa849530b3418a1ef (patch)
tree71899458bdff7201557f42039f09f1e1ae2b562c /install-VM-grongo
parent70d53d9a7584740de01cd749c87574ca60059892 (diff)
set up timesyncd
Diffstat (limited to 'install-VM-grongo')
-rwxr-xr-xinstall-VM-grongo6
1 files changed, 6 insertions, 0 deletions
diff --git a/install-VM-grongo b/install-VM-grongo
index 091f010..678e33f 100755
--- a/install-VM-grongo
+++ b/install-VM-grongo
@@ -304,6 +304,12 @@ done
EOF
chmod +x etc/cron.daily/local-trim-ext4
+## set up ntp
+cat >> etc/systemd/timesyncd.conf << EOF
+Servers=172.22.130.1
+EOF
+ln -s /lib/systemd/system/systemd-timesyncd.service etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
+
### first boot
cat > first-boot.sh << EOF
#!/bin/bash