Fixes for support change port and changes for no install monit for default
This commit is contained in:
parent
2ebe22f79e
commit
7c1b903d44
11 changed files with 38 additions and 16 deletions
|
|
@ -89,7 +89,7 @@ elif linux_distro=='arch':
|
|||
print('Error, cannot start mariadb')
|
||||
sys.exit(1)
|
||||
|
||||
elif linux_distro=='rocky' or linux_distro=='alma' or linux_distro=='fedora':
|
||||
elif linux_distro=='rocky' or linux_distro=='almalinux' or linux_distro=='fedora':
|
||||
|
||||
if subprocess.call("sudo dnf install -y mariadb-server expect", shell=True) > 0:
|
||||
print('Error, cannot install MariaDB...')
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ elif linux_distro=='debian' or linux_distro=='ubuntu':
|
|||
if call('sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y git', shell=True) > 0:
|
||||
print('Error, cannot install git...')
|
||||
exit(1)
|
||||
elif linux_distro=='rocky' or linux_distro=='fedora':
|
||||
elif linux_distro=='rocky' or linux_distro=='fedora' or linux_distro=='almalinux':
|
||||
if call("sudo dnf install -y git", shell=True) > 0:
|
||||
print('Error, cannot install git...')
|
||||
exit(1)
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@ elif linux_distro=='debian' or linux_distro=='ubuntu':
|
|||
if call('sudo DEBIAN_FRONTEND="noninteractive" apt-get install -y php-fpm php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip php-redis unzip', shell=True) > 0:
|
||||
print('Error, cannot install php...')
|
||||
exit(1)
|
||||
elif linux_distro=='rocky' or linux_distro=='fedora':
|
||||
elif linux_distro=='rocky' or linux_distro=='fedora' or linux_distro=='almalinux':
|
||||
|
||||
if linux_distro=='rocky':
|
||||
if linux_distro=='rocky' or linux_distro=='almalinux':
|
||||
|
||||
if call("sudo dnf install -y php php-gd php-mysqlnd php-fpm php-zip", shell=True) > 0:
|
||||
print('Error, cannot install php...')
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ elif [[ $DISTRO =~ ^NAME=\"Arch ]]; then
|
|||
|
||||
sudo pacman -S --noconfirm python python-pip sudo augeas python-virtualenv
|
||||
|
||||
elif [[ $DISTRO =~ ^NAME=\"Rocky ]] || [[ $DISTRO =~ ^NAME=\"Alma ]]; then
|
||||
elif [[ $DISTRO =~ ^NAME=\"Rocky ]] || [[ $DISTRO =~ ^Alma ]]; then
|
||||
|
||||
dnf install -y sudo
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ elif [[ $DISTRO =~ ^Fedora ]]; then
|
|||
|
||||
else
|
||||
|
||||
echo "Sorry, Linux distro not supported"
|
||||
echo '{"error": 1, "status": 1, "progress": 100, "no_progress":0, "message": "Error, cannot install python in your distro..."}'
|
||||
exit 1;
|
||||
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue