several improvement and armonisation in filefct.sh, module auth and patch_snmp improved

This commit is contained in:
2022-01-27 13:17:56 +01:00
parent baac34cb85
commit 55a9e49101
16 changed files with 204 additions and 116 deletions

View File

@@ -11,7 +11,7 @@
# * NTPSERVERS: list of NTP servers
# ------------------------------------------------------------------------------
export VER_conf_ntp="0.1.4"
export VER_conf_ntp="0.1.5"
export DEP_conf_ntp=""
conf_ntp()
@@ -28,9 +28,9 @@ conf_ntp()
prnt I "Installation du fichier de configuration de NTP."
local dest="/etc/ntp.conf.work"
backupdist /etc/ntp.conf
tagfile $dest
installfile ntp.conf $dest
backup_dist /etc/ntp.conf
tag_file $dest
install_file ntp.conf $dest
local line=""
for srv in $NTP_SERVERS; do
line="${line}server $srv iburst\n"
@@ -52,7 +52,7 @@ precheck_conf_ntp()
prnt E "No configured NTP server!"
die 151
else
file_exists ntp.conf
file_must_exists ntp.conf
prnt m "The NTP servers to be used will be:"
for srv in $NTP_SERVERS; do
prnt m " * $srv"