Config and setup files

add chrony install for setting time sync properly

finxol.io d4c9f019 990cd1f4

verified
Changed files
+8 -1
+8 -1
setup.sh
···
# 1. Create a new sudo user.
# 2. Move the root SSH key to the new user.
# 3. Harden the SSH server configuration.
-
# 4. Install bat, eza, and Docker.
+
# 4. Install bat, eza, Docker, Caddy, and chrony for time synchronization.
# --- Configuration ---
readonly USERNAME="finxol"
···
chmod o+r /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
+
+
# --- Time Synchronization ---
+
log "Installing and configuring chrony for time synchronization"
+
apt-get install -y chrony
+
# Start and enable chrony service
+
systemctl enable --now chronyd || true
+
echo "chrony installed and configured for automatic time synchronization."
# --- Finalization ---
log "Server setup complete!"