do check for remote db

This commit is contained in:
Usman Nasir
2021-03-04 10:17:47 +05:00
parent 8ece4f4b3b
commit 92357afbfc
2 changed files with 2 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ DATABASES = {
'USER': 'cyberpanel',
'PASSWORD': 'Bz9gF7Hr7X4RtD',
'HOST': 'localhost',
'PORT':''
'PORT': ''
},
'rootdb': {
'ENGINE': 'django.db.backends.mysql',

View File

@@ -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!")