File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66# Works with Debian 13, although atm no scap profile is available as of 27-08-2025
77# Works with Ubuntu 22.04 tls, although scap support needs to be disabled as of 16-12-2025
88
9- SCRIPT_BUILD=" 2026011501 "
9+ SCRIPT_BUILD=" 2026033101
1010
1111# Note that all variables can be overridden by kernel arguments
1212# Example: Override BRAND_NAME with kernel argument: NPF_BRAND_NAME=MyBrand
@@ -2079,9 +2079,11 @@ if [ "${NTP_SERVERS}" != "" ]; then
20792079 else
20802080 log " Cannot setup NTP on this system. Looks unsupported" " ERROR"
20812081 fi
2082+ [ ! -d /etc/chrony/sources.d ] && mkdir -p /etc/chrony/sources.d 2>> " ${LOG_FILE} " || log " Failed to create /etc/chrony/sources.d directory" " ERROR"
2083+ set_conf_value " /etc/chrony/chrony.conf" " include" " /etc/chrony/sources.d/*.conf" " " || log " Failed to set include for chrony conf" " ERROR"
20822084 IFS=' :' read -r -a NTP_SERVER_ARRAY <<< " ${NTP_SERVERS}"
20832085 for ntp_server in " ${NTP_SERVER_ARRAY[@]} " ; do
2084- echo " server ${ntp_server} iburst" > /etc/chrony/sources.d/local-ntp-server.sources 2>> " ${LOG_FILE} " || log " Failed to add ${ntp_server} to /etc/chrony/sources.d/local-ntp-server.sources" " ERROR"
2086+ echo " server ${ntp_server} iburst" >> /etc/chrony/sources.d/local-ntp-server.sources 2>> " ${LOG_FILE} " || log " Failed to add ${ntp_server} to /etc/chrony/sources.d/local-ntp-server.sources" " ERROR"
20852087 done
20862088 systemctl enable " ${chrony_svc} " 2>> " ${LOG_FILE} " || log " Failed to enable ${chrony_svc} " " ERROR"
20872089 systemctl start " ${chrony_svc} " 2>> " ${LOG_FILE} " || log " Failed to start ${chrony_svc} " " ERROR"
You can’t perform that action at this time.
0 commit comments