mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge branch 'dev' of github.com:YunoHost/yunohost into dev
This commit is contained in:
commit
0ce367d137
3 changed files with 4 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
|||
"app_already_up_to_date": "{app} is already up-to-date",
|
||||
"app_argument_choice_invalid": "Use one of these choices '{choices}' for the argument '{name}' instead of '{value}'",
|
||||
"app_argument_invalid": "Pick a valid value for the argument '{name}': {error}",
|
||||
"app_argument_password_help": "Type the key Enter to keep the old value",
|
||||
"app_argument_password_help_keep": "Press Enter to keep the current value",
|
||||
"app_argument_password_help_optional": "Type one space to empty the password",
|
||||
"app_argument_password_no_default": "Error while parsing password argument '{name}': password argument can't have a default value for security reason",
|
||||
"app_argument_required": "Argument '{name}' is required",
|
||||
|
|
|
@ -1766,7 +1766,6 @@ class AppConfigPanel(ConfigPanel):
|
|||
default_script = """#!/bin/bash
|
||||
source /usr/share/yunohost/helpers
|
||||
ynh_abort_if_errors
|
||||
final_path=$(ynh_app_setting_get $app final_path)
|
||||
ynh_app_config_run $1
|
||||
"""
|
||||
write_to_file(config_script, default_script)
|
||||
|
@ -1774,11 +1773,13 @@ ynh_app_config_run $1
|
|||
# Call config script to extract current values
|
||||
logger.debug(f"Calling '{action}' action from config script")
|
||||
app_id, app_instance_nb = _parse_app_instance_name(self.app)
|
||||
settings = _get_app_settings(app_id)
|
||||
env.update(
|
||||
{
|
||||
"app_id": app_id,
|
||||
"app": self.app,
|
||||
"app_instance_nb": str(app_instance_nb),
|
||||
"final_path": settings.get("final_path", "")
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -695,7 +695,7 @@ class PasswordQuestion(Question):
|
|||
need_column = self.current_value or self.optional
|
||||
text_for_user_input_in_cli = super()._format_text_for_user_input_in_cli(need_column)
|
||||
if self.current_value:
|
||||
text_for_user_input_in_cli += "\n - " + m18n.n("app_argument_password_help")
|
||||
text_for_user_input_in_cli += "\n - " + m18n.n("app_argument_password_help_keep")
|
||||
if self.optional:
|
||||
text_for_user_input_in_cli += "\n - " + m18n.n("app_argument_password_help_optional")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue