Include "Kali Rolling" based on Debian Testing
The script throws a error when os_version is "kali-rolling". The modifications allows to run the script against Kali Rolling. Ref.: https://www.kali.org/docs/policy/kali-linux-relationship-with-debian/
This commit is contained in:
parent
d4ae10ec25
commit
bb2cfbb2b5
@ -28,7 +28,7 @@ if grep -qs "ubuntu" /etc/os-release; then
|
|||||||
group_name="nogroup"
|
group_name="nogroup"
|
||||||
elif [[ -e /etc/debian_version ]]; then
|
elif [[ -e /etc/debian_version ]]; then
|
||||||
os="debian"
|
os="debian"
|
||||||
os_version=$(grep -oE '[0-9]+' /etc/debian_version | head -1)
|
os_version=$(grep -oE '[0-9]+|kali-rolling' /etc/debian_version | head -1)
|
||||||
group_name="nogroup"
|
group_name="nogroup"
|
||||||
elif [[ -e /etc/almalinux-release || -e /etc/rocky-release || -e /etc/centos-release ]]; then
|
elif [[ -e /etc/almalinux-release || -e /etc/rocky-release || -e /etc/centos-release ]]; then
|
||||||
os="centos"
|
os="centos"
|
||||||
@ -50,11 +50,15 @@ This version of Ubuntu is too old and unsupported."
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$os" == "debian" && "$os_version" -lt 9 ]]; then
|
if [[ "$os" == "debian" ]]; then
|
||||||
echo "Debian 9 or higher is required to use this installer.
|
if [[ "$os_version" == "kali-rolling" ]]; then
|
||||||
This version of Debian is too old and unsupported."
|
echo ""
|
||||||
|
elif [[ "$os_version" -lt 9 ]]; then
|
||||||
|
echo "Debian 9 or higher or Kali-Rolling is required to use this installer.
|
||||||
|
This version of Debian/Kali is too old and unsupported."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$os" == "centos" && "$os_version" -lt 7 ]]; then
|
if [[ "$os" == "centos" && "$os_version" -lt 7 ]]; then
|
||||||
echo "CentOS 7 or higher is required to use this installer.
|
echo "CentOS 7 or higher is required to use this installer.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user