mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] typo
This commit is contained in:
parent
76a294b284
commit
a7289c447a
2 changed files with 4 additions and 4 deletions
|
@ -437,7 +437,7 @@ app:
|
||||||
full: --args
|
full: --args
|
||||||
help: Serialized arguments for app script (i.e. "domain=domain.tld&path=/path")
|
help: Serialized arguments for app script (i.e. "domain=domain.tld&path=/path")
|
||||||
-n:
|
-n:
|
||||||
full: --no-remove-on-fail
|
full: --no-remove-on-failure
|
||||||
help: Debug option to avoid removing the app on a failed installation
|
help: Debug option to avoid removing the app on a failed installation
|
||||||
|
|
||||||
### app_remove() TODO: Write help
|
### app_remove() TODO: Write help
|
||||||
|
|
|
@ -440,7 +440,7 @@ def app_upgrade(auth, app=[], url=None, file=None):
|
||||||
logger.success(m18n.n('upgrade_complete'))
|
logger.success(m18n.n('upgrade_complete'))
|
||||||
|
|
||||||
|
|
||||||
def app_install(auth, app, label=None, args=None, no_remove_on_fail=False):
|
def app_install(auth, app, label=None, args=None, no_remove_on_failure=False):
|
||||||
"""
|
"""
|
||||||
Install apps
|
Install apps
|
||||||
|
|
||||||
|
@ -448,7 +448,7 @@ def app_install(auth, app, label=None, args=None, no_remove_on_fail=False):
|
||||||
app -- Name, local path or git URL of the app to install
|
app -- Name, local path or git URL of the app to install
|
||||||
label -- Custom name for the app
|
label -- Custom name for the app
|
||||||
args -- Serialize arguments for app installation
|
args -- Serialize arguments for app installation
|
||||||
no_remove_on_fail -- Debug option to avoid removing the app on a failed installation
|
no_remove_on_failure -- Debug option to avoid removing the app on a failed installation
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from yunohost.hook import hook_add, hook_remove, hook_exec
|
from yunohost.hook import hook_add, hook_remove, hook_exec
|
||||||
|
@ -542,7 +542,7 @@ def app_install(auth, app, label=None, args=None, no_remove_on_fail=False):
|
||||||
logger.exception(m18n.n('unexpected_error'))
|
logger.exception(m18n.n('unexpected_error'))
|
||||||
finally:
|
finally:
|
||||||
if install_retcode != 0:
|
if install_retcode != 0:
|
||||||
if not no_remove_on_fail:
|
if not no_remove_on_failure:
|
||||||
# Setup environment for remove script
|
# Setup environment for remove script
|
||||||
env_dict_remove = {}
|
env_dict_remove = {}
|
||||||
env_dict_remove["YNH_APP_ID"] = app_id
|
env_dict_remove["YNH_APP_ID"] = app_id
|
||||||
|
|
Loading…
Add table
Reference in a new issue