diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 5ddd4a1d4..b17ae843d 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -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") diff --git a/plogical/mysqlUtilities.py b/plogical/mysqlUtilities.py index 81b2d2f30..89153d5c5 100755 --- a/plogical/mysqlUtilities.py +++ b/plogical/mysqlUtilities.py @@ -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