feature: allow custom path for child-domains

This commit is contained in:
Usman Nasir
2020-04-04 23:48:05 +05:00
parent a82a1bf72b
commit 2d891fdd46
8 changed files with 9 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ from plogical.processUtilities import ProcessUtilities
# Create your views here.
VERSION = '2.0'
BUILD = 0
BUILD = 1
@ensure_csrf_cookie
def renderBase(request):

View File

@@ -15,7 +15,7 @@ from stat import *
import stat
VERSION = '2.0'
BUILD = 0
BUILD = 1
char_set = {'small': 'abcdefghijklmnopqrstuvwxyz',
'nums': '0123456789',

View File

@@ -19,7 +19,7 @@ from django.utils import translation
# Create your views here.
VERSION = '2.0'
BUILD = 0
BUILD = 1
def verifyLogin(request):
try:

View File

@@ -13,7 +13,7 @@ from packages.models import Package
from baseTemplate.models import version
VERSION = '2.0'
BUILD = 0
BUILD = 1
if not os.geteuid() == 0:
sys.exit("\nOnly root can run this script\n")

View File

@@ -14,7 +14,7 @@ import random
import string
VERSION = '2.0'
BUILD = 0
BUILD = 1
class Upgrade:
logPath = "/usr/local/lscp/logs/upgradeLog"

View File

@@ -857,7 +857,7 @@ class vhost:
cmd = shlex.split(command)
subprocess.call(cmd, stdout=FNULL, stderr=subprocess.STDOUT)
command = "chmod 755 %s" % (path)
command = "chmod 750 %s" % (path)
cmd = shlex.split(command)
subprocess.call(cmd, stdout=FNULL, stderr=subprocess.STDOUT)

View File

@@ -303,7 +303,7 @@
</div>
<div ng-hide="installationDetailsForm" class="form-group">
<label class="col-sm-3 control-label">{% trans "Path" %}</label>
<label class="col-sm-3 control-label">{% trans "Path" %}: /home/{{ domain }}/ </label>
<div class="col-sm-6">
<input placeholder="{% trans 'This path is relative to: ' %}{$ masterDomain $}. {% trans 'Leave empty to set default.' %}"
type="text" class="form-control" ng-model="docRootPath" required>

View File

@@ -285,9 +285,9 @@ class WebsiteManager:
if len(path) > 0:
path = path.lstrip("/")
path = "/home/" + masterDomain + "/public_html/" + path
path = "/home/" + masterDomain + "/" + path
else:
path = "/home/" + masterDomain + "/public_html/" + domain
path = "/home/" + masterDomain + "/" + domain
try:
apacheBackend = str(data['apacheBackend'])