supply site name for joomla

This commit is contained in:
Usman Nasir
2020-10-08 21:33:57 +05:00
parent 95f818e1e1
commit dd42260cc1
5 changed files with 14 additions and 0 deletions

View File

@@ -831,6 +831,7 @@ $parameters = array(
password = self.extraArgs['password']
prefix = self.extraArgs['prefix']
home = self.extraArgs['home']
siteName = self.extraArgs['siteName']
tempStatusPath = self.extraArgs['tempStatusPath']
self.tempStatusPath = tempStatusPath
@@ -976,6 +977,9 @@ $parameters = array(
command = "sed -i 's|$debug = 1|$debug = 0|g' %sconfiguration.php" % (finalPath)
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

View File

@@ -1739,6 +1739,7 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) {
var data = {
domain: domain,
siteName: $scope.siteName,
home: home,
path: path,
password: password,

View File

@@ -1739,6 +1739,7 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) {
var data = {
domain: domain,
siteName: $scope.siteName,
home: home,
path: path,
password: password,

View File

@@ -24,6 +24,13 @@
<form name="websiteCreationForm" action="/" id="createPackages" class="form-horizontal bordered-row">
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Site Name" %}</label>
<div class="col-sm-6">
<input type="text" class="form-control" ng-model="siteName">
</div>
</div>
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Login User" %}</label>
<div class="col-sm-6">

View File

@@ -1931,6 +1931,7 @@ class WebsiteManager:
extraArgs['prefix'] = data['prefix']
extraArgs['domain'] = data['domain']
extraArgs['home'] = data['home']
extraArgs['siteName'] = data['siteName']
extraArgs['tempStatusPath'] = "/home/cyberpanel/" + str(randint(1000, 9999))
mailUtilities.checkHome()