Skip to content

Commit

Permalink
Add support for Kali Linux Rolling as Grade B system
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Aug 27, 2023
1 parent 840b9ce commit dbafc50
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions virtualmin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ install_msg() {
UNSTABLERHEL
${CYANBG}${BLACK}${BOLD}Debian Linux and derivatives${NORMAL}${CYAN}
- Debian 10, 11 and 12 on i386 and amd64
- Ubuntu 20.04 LTS and 22.04 LTS on i386 and amd64${NORMAL}"
- Ubuntu 20.04 LTS and 22.04 LTS on i386 and amd64${NORMAL}
UNSTABLEDEB"

cat <<EOF
Expand All @@ -515,13 +516,16 @@ EOF
- Oracle Linux 8 and 9 on x86_64\\n \
- CloudLinux 8 and 9 on x86_64\\n \
${NORMAL}"
unstable_deb="${YELLOW}- Kali Linux Rolling on x86_64\\n \
${NORMAL}"
supported_all=$(echo "$supported_all" | sed "s/UNSTABLERHEL/$unstable_rhel/")
supported_all=$(echo "$supported_all" | sed "s/UNSTABLEDEB/$unstable_deb/")
else
supported_all=$(echo "$supported_all" | sed 's/UNSTABLERHEL//')
supported_all=$(echo "$supported_all" | sed 's/UNSTABLEDEB//')
fi
echo "$supported_all"
cat <<EOF
If your OS/version/arch is not listed, installation ${BOLD}${RED}will fail${NORMAL}. More
details about the systems supported by the script can be found here:
Expand Down Expand Up @@ -966,7 +970,7 @@ install_virtualmin_release() {
sed -i 's/http:\/\//https:\/\//' /etc/yum.repos.d/virtualmin.repo
fi
;;
debian | ubuntu)
debian | ubuntu | kali)
case "$os_type" in
ubuntu)
if [ "$os_version" != "18.04" ] && [ "$os_version" != "20.04" ] && [ "$os_version" != "22.04" ] && [ "$vm6_repos" -eq 0 ]; then
Expand All @@ -980,6 +984,12 @@ install_virtualmin_release() {
exit 1
fi
;;
kali)
if [ -z "$unstable" ] && [ "$os_type" = "kali" ] ; then
printf "${RED}${os_real} ${os_version}${NORMAL} is not supported by this installer${unstable_suffix}\\n"
exit 1
fi
;;
esac
package_type="deb"
if [ "$os_type" = "ubuntu" ]; then
Expand Down

0 comments on commit dbafc50

Please sign in to comment.