Config and setup files

add chrony install for setting time sync properly

finxol.io d4c9f019 990cd1f4

verified
+8 -1
+8 -1
setup.sh
··· 7 7 # 1. Create a new sudo user. 8 8 # 2. Move the root SSH key to the new user. 9 9 # 3. Harden the SSH server configuration. 10 - # 4. Install bat, eza, and Docker. 10 + # 4. Install bat, eza, Docker, Caddy, and chrony for time synchronization. 11 11 12 12 # --- Configuration --- 13 13 readonly USERNAME="finxol" ··· 161 161 chmod o+r /etc/apt/sources.list.d/caddy-stable.list 162 162 sudo apt update 163 163 sudo apt install caddy 164 + 165 + # --- Time Synchronization --- 166 + log "Installing and configuring chrony for time synchronization" 167 + apt-get install -y chrony 168 + # Start and enable chrony service 169 + systemctl enable --now chronyd || true 170 + echo "chrony installed and configured for automatic time synchronization." 164 171 165 172 # --- Finalization --- 166 173 log "Server setup complete!"