diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2013-05-17 08:46:30 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2013-05-17 08:46:30 +0200 |
commit | 9a157b5569151616771fc1a4cb576e6e1ce6eaf4 (patch) | |
tree | 7596a765ee08c5b23bd083841ec6a759bb48c58b | |
parent | 4508e0090e3c073980f1eadb8cba39dc07232e79 (diff) | |
download | archauto-9a157b5569151616771fc1a4cb576e6e1ce6eaf4.tar.gz archauto-9a157b5569151616771fc1a4cb576e6e1ce6eaf4.tar.bz2 |
use public ntp server
-rwxr-xr-x | archauto.sh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/archauto.sh b/archauto.sh index 5971050..643edc4 100755 --- a/archauto.sh +++ b/archauto.sh @@ -8,7 +8,6 @@ LABEL_BOOT=BOOT LABEL_SWAP=SWAP LABEL_ROOT=ROOT MOUNT_PATH=/mnt -NTP_SERVER=192.168.1.1 GIT_REPO=git://andreasbaumann.dyndns.org/cfenginetests.git echo "Installing minimalistic base system.." @@ -72,12 +71,9 @@ arch-chroot ${MOUNT_PATH} sh -c "echo 'root:xx' | chpasswd" sed -i 's/^SigLevel.*/SigLevel = Never/g' ${MOUNT_PATH}/etc/pacman.conf # synchronized time is a requirement, install and configure ntp +# we use a standard NTP server, later we can change that via cfengine arch-chroot ${MOUNT_PATH} pacman --noconfirm -S ntp - -arch-chroot ${MOUNT_PATH} ntpdate ${NTP_SERVER} - -sed -i '/^server .*.pool.ntp.org/d' ${MOUNT_PATH}/etc/ntp.conf -echo "server ${NTP_SERVER}" >> ${MOUNT_PATH}/etc/ntp.conf +arch-chroot ${MOUNT_PATH} ntpdate 0.pool.ntp.org arch-chroot ${MOUNT_PATH} systemctl enable ntpd.service # monitord needs netstat |