mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[kindafix] app_install: override manifest name by given label
This commit is contained in:
parent
a54e976e21
commit
2d3546247a
1 changed files with 5 additions and 1 deletions
|
@ -1010,6 +1010,10 @@ def app_install(
|
||||||
recursive=True,
|
recursive=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Override manifest name by given label
|
||||||
|
if label:
|
||||||
|
manifest["name"] = label
|
||||||
|
|
||||||
if packaging_format >= 2:
|
if packaging_format >= 2:
|
||||||
from yunohost.utils.resources import AppResourceManager
|
from yunohost.utils.resources import AppResourceManager
|
||||||
|
|
||||||
|
@ -1029,7 +1033,7 @@ def app_install(
|
||||||
permission_create(
|
permission_create(
|
||||||
app_instance_name + ".main",
|
app_instance_name + ".main",
|
||||||
allowed=["all_users"],
|
allowed=["all_users"],
|
||||||
label=label if label else manifest["name"],
|
label=manifest["name"],
|
||||||
show_tile=False,
|
show_tile=False,
|
||||||
protected=False,
|
protected=False,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue