- ssh to server, go in root user's home directory
- run
git clone https://github.com/BakirGracic/sync-server-time
- go inside
cd sync-server-time
- enable execution, run
sudo chmod +x installer.sh && sudo chmod +x main.sh
- run installer
./installer.sh
- check if cron job added with
crontab -e
- alternatively, run script manually via
./main.sh
bakirgracic / sync-server-time Goto Github PK
View Code? Open in Web Editor NEWSync your server's time automatically via this simple script and cron every-day execution