mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-01 06:36:42 -04:00
Added timezone configuration
This commit is contained in:
@@ -10,6 +10,7 @@ disk="$(cat /tempfiles/disk)"
|
|||||||
username="$(cat /tempfiles/username)"
|
username="$(cat /tempfiles/username)"
|
||||||
userpassword="$(cat /tempfiles/userpassword)"
|
userpassword="$(cat /tempfiles/userpassword)"
|
||||||
rootpassword="$(cat /tempfiles/rootpassword)"
|
rootpassword="$(cat /tempfiles/rootpassword)"
|
||||||
|
timezone="$(cat /tempfiles/timezone)"
|
||||||
|
|
||||||
# configuring locale and clock Settings
|
# configuring locale and clock Settings
|
||||||
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
|
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
|
||||||
|
|||||||
@@ -27,6 +27,10 @@ read -rp "$username password: " userpassword
|
|||||||
read -rp "root password: " rootpassword
|
read -rp "root password: " rootpassword
|
||||||
|
|
||||||
read -rp "hostname: " hostname
|
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
|
# stop questions
|
||||||
|
|
||||||
# start hardware detection
|
# start hardware detection
|
||||||
@@ -168,6 +172,7 @@ echo "$disk0" > /mnt/tempfiles/disk
|
|||||||
echo "$username" > /mnt/tempfiles/username
|
echo "$username" > /mnt/tempfiles/username
|
||||||
echo "$userpassword" > /mnt/tempfiles/userpassword
|
echo "$userpassword" > /mnt/tempfiles/userpassword
|
||||||
echo "$rootpassword" > /mnt/tempfiles/rootpassword
|
echo "$rootpassword" > /mnt/tempfiles/rootpassword
|
||||||
|
echo "$timezone" > /mnt/tempfiles/timezone
|
||||||
|
|
||||||
# download and initiate part 2
|
# download and initiate part 2
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/chrootInstall.sh -o /mnt/chrootInstall.sh
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/chrootInstall.sh -o /mnt/chrootInstall.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user