copying log file
This commit is contained in:
parent
e0895454f5
commit
02b4bf41d2
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue