From 92cefa192f39eb2a5cda77e1c0c8d5997039abcd Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 26 Jun 2022 03:54:49 -0400 Subject: [PATCH] Added timezone configuration --- chrootInstall.sh | 1 + install.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/chrootInstall.sh b/chrootInstall.sh index b74bb9e..1a2d75c 100755 --- a/chrootInstall.sh +++ b/chrootInstall.sh @@ -10,6 +10,7 @@ disk="$(cat /tempfiles/disk)" username="$(cat /tempfiles/username)" userpassword="$(cat /tempfiles/userpassword)" rootpassword="$(cat /tempfiles/rootpassword)" +timezone="$(cat /tempfiles/timezone)" # configuring locale and clock Settings echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen diff --git a/install.sh b/install.sh index 01929b4..b661bd8 100755 --- a/install.sh +++ b/install.sh @@ -27,6 +27,10 @@ read -rp "$username password: " userpassword read -rp "root password: " rootpassword read -rp "hostname: " hostname + +echo -e '\nAmerica:'&&ls /usr/share/zoneinfo/America +echo -e 'e.g. "New_York" or "Aruba"\n' +read -r -p "Timezone: " timezone # stop questions # start hardware detection @@ -168,6 +172,7 @@ echo "$disk0" > /mnt/tempfiles/disk echo "$username" > /mnt/tempfiles/username echo "$userpassword" > /mnt/tempfiles/userpassword echo "$rootpassword" > /mnt/tempfiles/rootpassword +echo "$timezone" > /mnt/tempfiles/timezone # download and initiate part 2 curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/chrootInstall.sh -o /mnt/chrootInstall.sh