Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-10-01 07:54:03 +09:00 committed by GitHub
parent 92c4db8adf
commit d0e90a0fde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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