adapt to modern ntp.conf file used by ntpsec
This commit is contained in:
@@ -39,7 +39,11 @@ conf_ntp()
|
|||||||
prnt I "Installing NTP configuration file..."
|
prnt I "Installing NTP configuration file..."
|
||||||
local dest="${conf_file}.work"
|
local dest="${conf_file}.work"
|
||||||
backup_dist "$conf_file"
|
backup_dist "$conf_file"
|
||||||
install_file ntp.conf "$dest"
|
if [[ -s $NTP_SERV ]]; then
|
||||||
|
install_file ${NTP_SERV}.conf "$dest"
|
||||||
|
else
|
||||||
|
install_file ntp.conf "$dest"
|
||||||
|
fi
|
||||||
tag_file "$dest"
|
tag_file "$dest"
|
||||||
local line=""
|
local line=""
|
||||||
for srv in $NTP_SERVERS; do
|
for srv in $NTP_SERVERS; do
|
||||||
|
|||||||
Reference in New Issue
Block a user