Files
AvianVisitors/scripts/set_date_and_time.sh
T
2021-11-05 11:33:53 -04:00

6 lines
310 B
Bash
Executable File

#!/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"