mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Support __FINALPATH__ in file source
This commit is contained in:
parent
2ac4e1c5bf
commit
b79d5ae416
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ EOL
|
|||
elif [[ "$source" == *":"* ]] ; then
|
||||
local source_key="$(echo "$source" | cut -d: -f1)"
|
||||
source_key=${source_key:-$short_setting}
|
||||
local source_file="$(echo "$source" | cut -d: -f2)"
|
||||
local source_file="$(echo "$source" | cut -d: -f2 | sed s@__FINALPATH__@$final_path@ | sed s/__APP__/$app/)"
|
||||
old[$short_setting]="$(ynh_value_get --file="${source_file}" --key="${source_key}")"
|
||||
|
||||
# Specific case for files (all content of the file is the source)
|
||||
|
|
Loading…
Add table
Reference in a new issue