Skip to content

Commit

Permalink
Fix sync time message print
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Dec 18, 2022
1 parent d66b998 commit fb7c02e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions virtualmin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,14 @@ if [ -z "$setup_only" ]; then
echo " .. done"
# Graceful sync
else
echo " Syncing system time .."
if systemctl restart chronyd 1>/dev/null 2>&1; then
echo " Syncing system time .."
sleep 2
echo " .. done"
elif systemctl restart systemd-timesyncd 1>/dev/null 2>&1; then
echo " .. done"
echo " Syncing system time .."
sleep 2
echo " .. done"
fi
fi

Expand Down

0 comments on commit fb7c02e

Please sign in to comment.