Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-10-01 20:18:20 +09:00 committed by GitHub
parent 676a582268
commit 135fea23f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2888,16 +2888,6 @@ else
fi
fi
clear
# Disable SELinux
[[ -f /etc/selinux/config ]] && {
SELinuxStatus=$(sestatus -v | grep -i "selinux status:" | grep "enabled")
[[ "$SELinuxStatus" != "" ]] && { echo -ne "\n${aoiBlue}# Disabling SELinux${plain}\n"; setenforce 0 2>/dev/null; echo -e "\nSuccess"; }
}
[[ ! -d "/tmp/" ]] && mkdir /tmp
if [[ "$loaderMode" == "0" ]]; then
checkGrub "/boot/grub/" "/boot/grub2/" "/etc/" "grub.cfg" "grub.conf" "/boot/efi/EFI/"
if [[ -z "$GRUBTYPE" ]]; then
@ -2906,6 +2896,16 @@ if [[ "$loaderMode" == "0" ]]; then
fi
fi
clear
[[ ! -d "/tmp/" ]] && mkdir /tmp
# Disable SELinux
[[ -f /etc/selinux/config ]] && {
SELinuxStatus=$(sestatus -v | grep -i "selinux status:" | grep "enabled")
[[ "$SELinuxStatus" != "" ]] && { echo -ne "\n${aoiBlue}# Disabling SELinux${plain}\n"; setenforce 0 2>/dev/null; echo -e "\nSuccess"; }
}
[[ -z "$tmpDIST" ]] && {
[ "$Relese" == 'Debian' ] && tmpDIST='12'
[ "$Relese" == 'Kali' ] && tmpDIST='rolling'