mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-05 18:05:16 +00:00
Fix sed script to insert Amazon NTP server into ntp.conf once rather
than twice. Reported by: Rafal Lukawiecki MFC after: 1 week
This commit is contained in:
parent
d793cf7019
commit
827e6ec07d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=344315
@ -96,7 +96,7 @@ vm_extra_pre_umount() {
|
||||
|
||||
# Use the NTP service provided by Amazon
|
||||
sed -i '' -e 's/^pool/#pool/' \
|
||||
-e 's/^#server.*/server 169.254.169.123 iburst/' \
|
||||
-e '1,/^#server/s/^#server.*/server 169.254.169.123 iburst/' \
|
||||
${DESTDIR}/etc/ntp.conf
|
||||
|
||||
# The first time the AMI boots, the installed "first boot" scripts
|
||||
|
Loading…
x
Reference in New Issue
Block a user