manuall date and time tool for no-network installations

This commit is contained in:
Patrick McGuire
2021-11-05 11:33:53 -04:00
parent f1e8e7f1f6
commit acfea589f2
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env -S sudo -E bash
# Setting date and time manually for non-network attached installatoins
most_recent="$(date +"%F %T" | tr '-' '/')"
new_time=$(whiptail --inputbox "Please set the correct time by changing these values. (24h clock format)" 20 60 "$most_recent" 3>&1 1>&2 2>&3)
date -s "$new_time"