Remove debian and ubuntu installer
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1336,11 +1336,18 @@ if [ "$apache" = 'yes' ]; then
|
||||
fi
|
||||
|
||||
# IDK why those modules still here, but ok. if they are disabled by default
|
||||
sed 's/^LoadModule suexec_module/#LoadModule suexec_module/' -i /etc/httpd/conf.modules.d/01-suexec.conf
|
||||
sed 's/^LoadModule fcgid_module/#LoadModule fcgid_module/' -i /etc/httpd/conf.modules.d/10-fcgid.conf
|
||||
|
||||
if [ -e /etc/httpd/conf.modules.d/01-suexec.conf ]; then
|
||||
sed 's/^LoadModule suexec_module/#LoadModule suexec_module/' -i /etc/httpd/conf.modules.d/01-suexec.conf
|
||||
fi
|
||||
if [ -e /etc/httpd/conf.modules.d/10-fcgid.conf ]; then
|
||||
sed 's/^LoadModule fcgid_module/#LoadModule fcgid_module/' -i /etc/httpd/conf.modules.d/10-fcgid.conf
|
||||
fi
|
||||
|
||||
# Switch status loader to custom one
|
||||
sed 's/^LoadModule status_module/#LoadModule status_module/' -i /etc/httpd/conf.modules.d/00-base.conf
|
||||
if [ -e /etc/httpd/conf.modules.d/00-base.conf ]; then
|
||||
sed 's/^LoadModule status_module/#LoadModule status_module/' -i /etc/httpd/conf.modules.d/00-base.conf
|
||||
fi
|
||||
echo 'LoadModule status_module modules/mod_status.so' > /etc/httpd/conf.modules.d/00-hestia-status.conf
|
||||
|
||||
if [ "$phpfpm" = 'yes' ]; then
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,13 +4,11 @@
|
||||
#
|
||||
# Hestia Control Panel Installation Routine
|
||||
# Automatic OS detection wrapper
|
||||
# https://www.hestiacp.com/
|
||||
# https://hestiadocs.brepo.ru/
|
||||
#
|
||||
# Currently Supported Operating Systems:
|
||||
# Supported Operating Systems:
|
||||
#
|
||||
# Debian 10, 11
|
||||
# Ubuntu 20.04, 22.04
|
||||
# AlmaLinux, EuroLinux, Red Hat EnterPrise Linux, Rocky Linux 8, 9
|
||||
# AlmaLinux, EuroLinux, Red Hat EnterPrise Linux, Rocky Linux, MSVSphere 9
|
||||
#
|
||||
# ======================================================== #
|
||||
|
||||
@@ -42,21 +40,7 @@ fi
|
||||
|
||||
# Detect OS
|
||||
if [ -e "/etc/os-release" ] && [ ! -e "/etc/redhat-release" ]; then
|
||||
type=$(grep "^ID=" /etc/os-release | cut -f 2 -d '=')
|
||||
if [ "$type" = "ubuntu" ]; then
|
||||
# Check if lsb_release is installed
|
||||
if [ -e '/usr/bin/lsb_release' ]; then
|
||||
release="$(lsb_release -s -r)"
|
||||
VERSION='ubuntu'
|
||||
else
|
||||
echo "lsb_release is currently not installed, please install it:"
|
||||
echo "apt-get update && apt-get install lsb-release"
|
||||
exit 1
|
||||
fi
|
||||
elif [ "$type" = "debian" ]; then
|
||||
release=$(cat /etc/debian_version | grep -o "[0-9]\{1,2\}" | head -n1)
|
||||
VERSION='debian'
|
||||
fi
|
||||
type="NoSupport"
|
||||
elif [ -e "/etc/os-release" ] && [ -e "/etc/redhat-release" ]; then
|
||||
type=$(grep "^ID=" /etc/os-release | cut -f 2 -d '"')
|
||||
VERSION=$type
|
||||
@@ -71,13 +55,10 @@ fi
|
||||
no_support_message() {
|
||||
echo "****************************************************"
|
||||
echo "Your operating system (OS) is not supported by"
|
||||
echo "Hestia Control Panel. Officially supported releases:"
|
||||
echo "Hestia Control Panel (RPM edition). Officially supported releases:"
|
||||
echo "****************************************************"
|
||||
echo " Debian 10, 11"
|
||||
echo " Ubuntu 20.04, 22.04 LTS"
|
||||
# Commenting this out for now
|
||||
echo " Red Hat Enterprise Linux 8, 9 and related versions of"
|
||||
echo " AlmaLinux, Rocky Linux, Oracle Linux Server and EuroLinux"
|
||||
echo " Red Hat Enterprise Linux 9 and related versions of"
|
||||
echo " AlmaLinux, Rocky Linux, Oracle Linux Server and EuroLinux, MSVSphere"
|
||||
echo ""
|
||||
exit 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user