server becomes pool

This commit is contained in:
Bob Mottram 2017-06-26 13:19:39 +01:00
parent 2763247509
commit f12dbcce87
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
if [ -f /etc/ntp.conf ];then
if ! sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' /etc/ntp.conf | grep server;then
if ! sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' /etc/ntp.conf | grep pool;then
exit 1
fi
else