You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_chrony/01-server-presence-in-confi...

21 lines
409 B

#!/bin/bash -x
source library/sh_lib.sh
check=0
_GREP_PATTERN="server ntp.msk-ix.ru iburst
server ntp1.vniiftri.ru iburst
server vniiftri2.khv.ru iburst
server ntp1.niiftri.irkutsk.ru iburst
server ntp.sstf.nsk.ru iburst
server ntp2.vniiftri.ru iburst
server ntp3.vniiftri.ru iburst
server ntp4.vniiftri.ru iburst"
cat /etc/chrony.conf | grep "${_GREP_PATTERN}"
check=$(eq_is_success ${check} 0)
exit 0