Skip to content

Commit

Permalink
Merge pull request #11410 from Whidix/fix-service_timesyncd_configure…
Browse files Browse the repository at this point in the history
…d-rule

fix: service_timesyncd_configured
  • Loading branch information
Mab879 authored Jan 4, 2024
2 parents 8c67706 + 182a922 commit 14815a8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ do
sed -i 's/^NTP/#&/g' "$current_cfg"
sed -i 's/^FallbackNTP/#&/g' "$current_cfg"
done
# Create /etc/systemd/timesyncd.d if it doesn't exist
if [ ! -d "/etc/systemd/timesyncd.d" ]
then
mkdir /etc/systemd/timesyncd.d
fi
# Set primary fallback NTP servers in drop-in configuration
echo "NTP=$preferred_ntp_servers" >> "$config_file"
echo "FallbackNTP=$fallback_ntp_servers" >> "$config_file"
Expand Down

0 comments on commit 14815a8

Please sign in to comment.