From f78e8e17c1d0101a01570fc52908ca7c5e85d568 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 20 Feb 2022 13:31:00 -0600 Subject: [PATCH] fix log copy scope --- archtitus.sh | 1 + scripts/3-post-setup.sh | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/archtitus.sh b/archtitus.sh index dc6f7b4..693b248 100755 --- a/archtitus.sh +++ b/archtitus.sh @@ -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 " ------------------------------------------------------------------------- diff --git a/scripts/3-post-setup.sh b/scripts/3-post-setup.sh index b718bea..81aefb5 100755 --- a/scripts/3-post-setup.sh +++ b/scripts/3-post-setup.sh @@ -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