Offer a way to sync time at boot in the first boot version of configure-stormux.

This commit is contained in:
Storm Dragon
2024-05-24 15:51:40 -04:00
parent 88d7d12c69
commit 134d25682b
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
date_time=$(curl -s http://worldtimeapi.org/api/ip | grep -oP '(?<="datetime":")[^"]*')
date -s "$date_time"