From 02b4bf41d29eb245ef04d63d627c7c422cb858bd Mon Sep 17 00:00:00 2001 From: mfgbhatti Date: Wed, 16 Feb 2022 19:19:40 +0000 Subject: [PATCH] copying log file --- 3-post-setup.sh | 1 - archtitus.sh | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/3-post-setup.sh b/3-post-setup.sh index 3560d58..72990ba 100755 --- a/3-post-setup.sh +++ b/3-post-setup.sh @@ -56,7 +56,6 @@ sed -i 's/^%wheel ALL=(ALL:ALL) NOPASSWD: ALL/# %wheel ALL=(ALL:ALL) NOPASSWD: A # Add sudo rights sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers -cp "$SCRIPT_DIR"/main.log var/log/archtitus.log rm -r /root/ArchTitus rm -r /home/"$USERNAME"/ArchTitus diff --git a/archtitus.sh b/archtitus.sh index 69b758e..5a727c4 100755 --- a/archtitus.sh +++ b/archtitus.sh @@ -28,6 +28,7 @@ logo() { } do_reboot () { + cp "$LOG" "$MOUNTPOINT"/var/log/archtitus.log umount -R "$MOUNTPOINT"/boot umount -R "$MOUNTPOINT" reboot