mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
avoid to retrieve final path in the config panel scripts
This commit is contained in:
parent
02480d27d7
commit
acb40424a6
1 changed files with 2 additions and 1 deletions
|
@ -1766,7 +1766,6 @@ class AppConfigPanel(ConfigPanel):
|
||||||
default_script = """#!/bin/bash
|
default_script = """#!/bin/bash
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
final_path=$(ynh_app_setting_get $app final_path)
|
|
||||||
ynh_app_config_run $1
|
ynh_app_config_run $1
|
||||||
"""
|
"""
|
||||||
write_to_file(config_script, default_script)
|
write_to_file(config_script, default_script)
|
||||||
|
@ -1774,11 +1773,13 @@ ynh_app_config_run $1
|
||||||
# Call config script to extract current values
|
# Call config script to extract current values
|
||||||
logger.debug(f"Calling '{action}' action from config script")
|
logger.debug(f"Calling '{action}' action from config script")
|
||||||
app_id, app_instance_nb = _parse_app_instance_name(self.app)
|
app_id, app_instance_nb = _parse_app_instance_name(self.app)
|
||||||
|
settings = _get_app_settings(app_id)
|
||||||
env.update(
|
env.update(
|
||||||
{
|
{
|
||||||
"app_id": app_id,
|
"app_id": app_id,
|
||||||
"app": self.app,
|
"app": self.app,
|
||||||
"app_instance_nb": str(app_instance_nb),
|
"app_instance_nb": str(app_instance_nb),
|
||||||
|
"final_path": settings.get("final_path", "")
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue