supply site name for joomla

This commit is contained in:
Usman Nasir
2020-10-08 21:45:07 +05:00
parent dd42260cc1
commit 672e1d6614
3 changed files with 6 additions and 5 deletions

View File

@@ -977,9 +977,6 @@ $parameters = array(
command = "sed -i 's|$debug = 1|$debug = 0|g' %sconfiguration.php" % (finalPath) command = "sed -i 's|$debug = 1|$debug = 0|g' %sconfiguration.php" % (finalPath)
ProcessUtilities.executioner(command) ProcessUtilities.executioner(command)
command = "sed -i 's|$sitename = '%s'|$sitename = '%s'|g' %sconfiguration.php" % (dbUser, siteName, finalPath)
ProcessUtilities.executioner(command)
## ##
from filemanager.filemanager import FileManager from filemanager.filemanager import FileManager
@@ -987,6 +984,10 @@ $parameters = array(
fm = FileManager(None, None) fm = FileManager(None, None)
fm.fixPermissions(self.masterDomain) fm.fixPermissions(self.masterDomain)
command = "sed -i 's|$sitename = '%s'|$sitename = '%s'|g' %sconfiguration.php" % (
dbUser, siteName, finalPath)
ProcessUtilities.executioner(command, externalApp)
installUtilities.reStartLiteSpeedSocket() installUtilities.reStartLiteSpeedSocket()
statusFile = open(tempStatusPath, 'w') statusFile = open(tempStatusPath, 'w')

View File

@@ -4673,7 +4673,7 @@ app.controller('installJoomlaCTRL', function ($scope, $http, $timeout) {
domain: domain, domain: domain,
home: home, home: home,
path: path, path: path,
sitename: $scope.blogTitle, sitename: $scope.siteName,
username: $scope.adminUser, username: $scope.adminUser,
passwordByPass: $scope.adminPassword, passwordByPass: $scope.adminPassword,
prefix: $scope.databasePrefix prefix: $scope.databasePrefix

View File

@@ -4673,7 +4673,7 @@ app.controller('installJoomlaCTRL', function ($scope, $http, $timeout) {
domain: domain, domain: domain,
home: home, home: home,
path: path, path: path,
sitename: $scope.blogTitle, sitename: $scope.siteName,
username: $scope.adminUser, username: $scope.adminUser,
passwordByPass: $scope.adminPassword, passwordByPass: $scope.adminPassword,
prefix: $scope.databasePrefix prefix: $scope.databasePrefix