Skip to content

Commit 2d891fd

Browse files
committed
feature: allow custom path for child-domains
1 parent a82a1bf commit 2d891fd

8 files changed

Lines changed: 9 additions & 9 deletions

File tree

baseTemplate/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Create your views here.
2020

2121
VERSION = '2.0'
22-
BUILD = 0
22+
BUILD = 1
2323

2424
@ensure_csrf_cookie
2525
def renderBase(request):

install/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import stat
1616

1717
VERSION = '2.0'
18-
BUILD = 0
18+
BUILD = 1
1919

2020
char_set = {'small': 'abcdefghijklmnopqrstuvwxyz',
2121
'nums': '0123456789',

loginSystem/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Create your views here.
2020

2121
VERSION = '2.0'
22-
BUILD = 0
22+
BUILD = 1
2323

2424
def verifyLogin(request):
2525
try:

plogical/adminPass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from baseTemplate.models import version
1414

1515
VERSION = '2.0'
16-
BUILD = 0
16+
BUILD = 1
1717

1818
if not os.geteuid() == 0:
1919
sys.exit("\nOnly root can run this script\n")

plogical/upgrade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import string
1515

1616
VERSION = '2.0'
17-
BUILD = 0
17+
BUILD = 1
1818

1919
class Upgrade:
2020
logPath = "/usr/local/lscp/logs/upgradeLog"

plogical/vhost.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def createDirectoryForDomain(masterDomain, domain, phpVersion, path, administrat
857857
cmd = shlex.split(command)
858858
subprocess.call(cmd, stdout=FNULL, stderr=subprocess.STDOUT)
859859

860-
command = "chmod 755 %s" % (path)
860+
command = "chmod 750 %s" % (path)
861861
cmd = shlex.split(command)
862862
subprocess.call(cmd, stdout=FNULL, stderr=subprocess.STDOUT)
863863

websiteFunctions/templates/websiteFunctions/website.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ <h3 class="glyph-icon icon-close text-danger mt-5"></h3>
303303
</div>
304304

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

websiteFunctions/website.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@ def submitDomainCreation(self, userID=None, data=None):
285285

286286
if len(path) > 0:
287287
path = path.lstrip("/")
288-
path = "/home/" + masterDomain + "/public_html/" + path
288+
path = "/home/" + masterDomain + "/" + path
289289
else:
290-
path = "/home/" + masterDomain + "/public_html/" + domain
290+
path = "/home/" + masterDomain + "/" + domain
291291

292292
try:
293293
apacheBackend = str(data['apacheBackend'])

0 commit comments

Comments
 (0)