Merge pull request #903 from aaronsmile/v2.3.3-dev

fix system identification and installation bugs
This commit is contained in:
Usman Nasir
2022-07-06 08:34:48 +05:00
committed by GitHub
2 changed files with 11 additions and 8 deletions

View File

@@ -1504,6 +1504,7 @@ if [[ $Server_OS = "Ubuntu" ]]; then
fi
if [[ $Server_OS = "openEuler" ]]; then
#yum install -y lsphp??-memcached lsphp??-pecl-memcached
echo -e "\nMemcached process and its PHP extensions for openEuler are in process of packaging...\n"
if [[ $Total_RAM -eq "2048" ]] || [[ $Total_RAM -gt "2048" ]]; then
Post_Install_Addon_Mecached_LSMCD
else
@@ -1558,7 +1559,8 @@ else
fi
if [[ "$Server_OS" = "openEuler" ]]; then
yum install -y lsphp??-redis redis
#yum install -y lsphp??-redis redis
echo -e "\nRedis process and its PHP extensions for openEuler are in process of packaging...\n"
fi
if pgrep "redis" ; then

View File

@@ -58,15 +58,16 @@ def get_distro():
return cent8
if data.find('Rocky Linux release 8') > -1 or data.find('Rocky Linux 8') > -1 or data.find('rocky:8') > -1:
return cent8
elif exists("/etc/openEuler-release"):
distro_file = "/etc/openEuler-release"
distro = openeuler
else:
logging.InstallLog.writeToFile("Can't find linux release file - fatal error")
preFlightsChecks.stdOut("Can't find linux release file - fatal error")
os._exit(os.EX_UNAVAILABLE)
if exists("/etc/openEuler-release"):
distro_file = "/etc/openEuler-release"
distro = openeuler
else:
logging.InstallLog.writeToFile("Can't find linux release file - fatal error")
preFlightsChecks.stdOut("Can't find linux release file - fatal error")
os._exit(os.EX_UNAVAILABLE)
if distro == -1:
logging.InstallLog.writeToFile("Can't find distro name in " + distro_file + " - fatal error")