From 92357afbfc9876faf17c08cad934acffc51dd089 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Thu, 4 Mar 2021 10:17:47 +0500 Subject: [PATCH] do check for remote db --- CyberCP/settings.py | 2 +- install/install.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CyberCP/settings.py b/CyberCP/settings.py index 64905d503..12eb81229 100755 --- a/CyberCP/settings.py +++ b/CyberCP/settings.py @@ -114,7 +114,7 @@ DATABASES = { 'USER': 'cyberpanel', 'PASSWORD': 'Bz9gF7Hr7X4RtD', 'HOST': 'localhost', - 'PORT':'' + 'PORT': '' }, 'rootdb': { 'ENGINE': 'django.db.backends.mysql', diff --git a/install/install.py b/install/install.py index f973a5dd8..a22228b30 100755 --- a/install/install.py +++ b/install/install.py @@ -446,7 +446,7 @@ class preFlightsChecks: command = "sed -i 's|root|%s|g' %s" % (self.mysqluser, path) preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) - command = "sed -i 's|'PORT':''|'PORT':'%s'|g' %s" % (self.mysqlport, path) + command = "sed -i \"s|'PORT': ''|'PORT':'%s'|g\" %s" % (self.mysqlport, path) preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR) logging.InstallLog.writeToFile("settings.py updated!")