username fix

This commit is contained in:
Chris Titus 2022-01-09 18:42:18 -06:00
parent 446d4b306a
commit b75139876b
3 changed files with 3 additions and 3 deletions

View File

@ -159,7 +159,7 @@ if [ $(whoami) = "root" ]; then
groupadd libvirt
useradd -m -G wheel,libvirt -s /bin/bash $USERNAME
# use chpasswd to enter $username:$password
# use chpasswd to enter $USERNAME:$password
echo "$USERNAME:$PASSWORD" | chpasswd
cp -R /root/ArchTitus /home/$USERNAME/
chown -R $USERNAME: /home/$USERNAME/ArchTitus

View File

@ -80,7 +80,7 @@ sed -i 's/^%wheel ALL=(ALL) NOPASSWD: ALL/# %wheel ALL=(ALL) NOPASSWD: ALL/' /et
sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
rm -r /root/ArchTitus
rm -r /home/$username/ArchTitus
rm -r /home/$USERNAME/ArchTitus
# Replace in the same state
cd $pwd

View File

@ -20,7 +20,7 @@ echo -ne "
source $SCRIPT_DIR/setup.conf
bash 0-preinstall.sh
arch-chroot /mnt /root/ArchTitus/1-setup.sh
arch-chroot /mnt /usr/bin/runuser -u $username -- /home/$username/ArchTitus/2-user.sh
arch-chroot /mnt /usr/bin/runuser -u $USERNAME -- /home/$USERNAME/ArchTitus/2-user.sh
arch-chroot /mnt /root/ArchTitus/3-post-setup.sh
echo -ne "