copying log file

This commit is contained in:
mfgbhatti 2022-02-16 19:19:40 +00:00
parent e0895454f5
commit 02b4bf41d2
2 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,6 @@ sed -i 's/^%wheel ALL=(ALL:ALL) NOPASSWD: ALL/# %wheel ALL=(ALL:ALL) NOPASSWD: A
# Add sudo rights # Add sudo rights
sed -i 's/^# %wheel ALL=(ALL:ALL) ALL/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers 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 /root/ArchTitus
rm -r /home/"$USERNAME"/ArchTitus rm -r /home/"$USERNAME"/ArchTitus

View File

@ -28,6 +28,7 @@ logo() {
} }
do_reboot () { do_reboot () {
cp "$LOG" "$MOUNTPOINT"/var/log/archtitus.log
umount -R "$MOUNTPOINT"/boot umount -R "$MOUNTPOINT"/boot
umount -R "$MOUNTPOINT" umount -R "$MOUNTPOINT"
reboot reboot