mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge remote-tracking branch 'origin/fix-593-cant-restore-root-domain-app' into unstable
This commit is contained in:
commit
64fc8ed5dd
1 changed files with 1 additions and 5 deletions
|
@ -909,10 +909,6 @@ def app_checkurl(auth, url, app=None):
|
|||
raise MoulinetteError(errno.EINVAL, m18n.n('domain_unknown'))
|
||||
|
||||
if domain in apps_map:
|
||||
# Domain already has apps on sub path
|
||||
if path == '/':
|
||||
raise MoulinetteError(errno.EPERM,
|
||||
m18n.n('app_location_install_failed'))
|
||||
# Loop through apps
|
||||
for p, a in apps_map[domain].items():
|
||||
# Skip requested app checking
|
||||
|
@ -922,7 +918,7 @@ def app_checkurl(auth, url, app=None):
|
|||
if path == p:
|
||||
raise MoulinetteError(errno.EINVAL,
|
||||
m18n.n('app_location_already_used'))
|
||||
elif path.startswith(p):
|
||||
elif path.startswith(p) or p.startswith(path):
|
||||
raise MoulinetteError(errno.EPERM,
|
||||
m18n.n('app_location_install_failed'))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue