bug fix mariadb install

This commit is contained in:
Usman Nasir
2021-10-24 20:47:11 +05:00
parent e6b02f45ed
commit dc89458de7
2 changed files with 4 additions and 3 deletions

View File

@@ -295,7 +295,8 @@ class InstallCyberPanel:
if self.distro == cent8 or self.distro == ubuntu:
command = 'systemctl start mariadb'
else:
command = "systemctl start mysql"
command = "systemctl start mariadb"
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
############## Enable mariadb at system startup ######################
@@ -337,7 +338,7 @@ class InstallCyberPanel:
except IOError as err:
self.stdOut("[ERROR] Error in setting: " + fileName + ": " + str(err), 1, 1, os.EX_OSERR)
os.system('systemctl restart mysql')
os.system('systemctl restart mariadb')
self.stdOut("MariaDB is now setup so it can support Cyberpanel's needs")

View File

@@ -596,7 +596,7 @@ password=%s
@staticmethod
def restartMySQL():
try:
command = 'sudo systemctl restart mysql'
command = 'sudo systemctl restart mariadb'
ProcessUtilities.executioner(command)
return 1, None