Skip to content

Commit

Permalink
Align comment with code
Browse files Browse the repository at this point in the history
  • Loading branch information
teacup-on-rockingchair committed Jul 27, 2023
1 parent 2423ec3 commit 416069c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
config_file="/etc/systemd/timesyncd.d/oscap-remedy.conf"
current_cfg_arr=( "/etc/systemd/timesyncd.conf" )
current_cfg_arr+=("$(ls /etc/systemd/timesyncd.d/*)")
# Comment existing NTP FallbackNTP and RootDistance settings
# Comment existing NTP RootDistance settings
for current_cfg in "${current_cfg_arr[@]}"
do
sed -i 's/^RootDistanceMax/#&/g' "$current_cfg"
done
# Set primary fallback NTP servers and RootDistance in drop-in configuration
# Set RootDistance in drop-in configuration
echo "RootDistanceMax=1" >> "$config_file"

0 comments on commit 416069c

Please sign in to comment.