Config and setup files

add chrony install for setting time sync properly

finxol.io d4c9f019 990cd1f4

verified
+8 -1
+8 -1
setup.sh
··· 7 # 1. Create a new sudo user. 8 # 2. Move the root SSH key to the new user. 9 # 3. Harden the SSH server configuration. 10 - # 4. Install bat, eza, and Docker. 11 12 # --- Configuration --- 13 readonly USERNAME="finxol" ··· 161 chmod o+r /etc/apt/sources.list.d/caddy-stable.list 162 sudo apt update 163 sudo apt install caddy 164 165 # --- Finalization --- 166 log "Server setup complete!"
··· 7 # 1. Create a new sudo user. 8 # 2. Move the root SSH key to the new user. 9 # 3. Harden the SSH server configuration. 10 + # 4. Install bat, eza, Docker, Caddy, and chrony for time synchronization. 11 12 # --- Configuration --- 13 readonly USERNAME="finxol" ··· 161 chmod o+r /etc/apt/sources.list.d/caddy-stable.list 162 sudo apt update 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." 171 172 # --- Finalization --- 173 log "Server setup complete!"