fix log copy scope

This commit is contained in:
Austin Horstman 2022-02-20 13:31:00 -06:00
parent 1b6c54d87e
commit f78e8e17c1
2 changed files with 3 additions and 4 deletions

View File

@ -27,6 +27,7 @@ echo -ne "
( arch-chroot /mnt /usr/bin/runuser -u $USERNAME -- /home/$USERNAME/ArchTitus/scripts/2-user.sh )|& tee 2-user.log
fi
( arch-chroot /mnt $HOME/ArchTitus/scripts/3-post-setup.sh )|& tee 3-post-setup.log
cp -v *.log /mnt/home/$USERNAME
echo -ne "
-------------------------------------------------------------------------

View File

@ -129,10 +129,8 @@ sed -i 's/^%wheel ALL=(ALL:ALL) NOPASSWD: ALL/# %wheel ALL=(ALL:ALL) NOPASSWD: A
sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
cp -rfv $HOME/ArchTitus/*.log /home/$USERNAME/
rm -r $HOME/ArchTitus
rm -r /home/$USERNAME/ArchTitus
rm -rv $HOME/ArchTitus
rm -rv /home/$USERNAME/ArchTitus
# Replace in the same state
cd $pwd