mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fixes following tests
This commit is contained in:
parent
75742216ea
commit
7ecefaf8dc
1 changed files with 3 additions and 2 deletions
|
@ -2564,13 +2564,14 @@ def _validate_and_normalize_webpath(manifest, args_dict, app_folder):
|
||||||
# Full-domain apps typically declare something like path_url="/" or path=/
|
# Full-domain apps typically declare something like path_url="/" or path=/
|
||||||
# and use ynh_webpath_register or yunohost_app_checkurl inside the install script
|
# and use ynh_webpath_register or yunohost_app_checkurl inside the install script
|
||||||
install_script_content = open(os.path.join(app_folder, 'scripts/install')).read()
|
install_script_content = open(os.path.join(app_folder, 'scripts/install')).read()
|
||||||
|
|
||||||
if re.search(r"\npath(_url)?=[\"']?/[\"']?\n", install_script_content) \
|
if re.search(r"\npath(_url)?=[\"']?/[\"']?\n", install_script_content) \
|
||||||
and re.search(r"(ynh_webpath_register|yunohost app checkurl)"):
|
and re.search(r"(ynh_webpath_register|yunohost app checkurl)", install_script_content):
|
||||||
|
|
||||||
domain = domain_args[0][1]
|
domain = domain_args[0][1]
|
||||||
conflicts = _get_conflicting_apps(domain, "/")
|
conflicts = _get_conflicting_apps(domain, "/")
|
||||||
|
|
||||||
raise YunohostError('app_full_domain_unavailable', domain)
|
raise YunohostError('app_full_domain_unavailable', domain=domain)
|
||||||
|
|
||||||
|
|
||||||
def _make_environment_dict(args_dict, prefix="APP_ARG_"):
|
def _make_environment_dict(args_dict, prefix="APP_ARG_"):
|
||||||
|
|
Loading…
Add table
Reference in a new issue