Skip to content

Commit

Permalink
Update ntp.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed Jan 31, 2025
1 parent e43e1e4 commit 80a2b13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/ntp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
set -euo pipefail

echo "Removing systemd-timesyncd..."
apt purge systemd-timesyncd
apt purge -y systemd-timesyncd

echo "Installing ntp..."
apt update
apt-get install ntpsec ntp
apt-get -y install ntpsec ntp
systemctl status ntp

echo "Checking NTP sync..."
ntpq -p
ntpq -p

0 comments on commit 80a2b13

Please sign in to comment.