fix system identification and installation bugs

This commit is contained in:
Aaron
2022-06-25 21:27:41 +08:00
parent 893b128488
commit c2f7032d88
2 changed files with 10 additions and 7 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
@@ -1559,6 +1560,7 @@ fi
if [[ "$Server_OS" = "openEuler" ]]; then
#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")