mirror of
https://github.com/YunoHost-Apps/wekan_ynh.git
synced 2024-09-03 20:36:09 +02:00
Update ynh_add_config
This commit is contained in:
parent
a73550cb73
commit
174b32f21e
1 changed files with 2 additions and 2 deletions
|
@ -113,10 +113,10 @@ ynh_replace_vars () {
|
||||||
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$YNH_PHP_VERSION" --target_file="$file"
|
ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$YNH_PHP_VERSION" --target_file="$file"
|
||||||
fi
|
fi
|
||||||
if test -n "${ynh_node_load_PATH:-}"; then
|
if test -n "${ynh_node_load_PATH:-}"; then
|
||||||
ynh_replace_string --match_string="__YNH_NODE_LODE_PATH__" --replace_string="$ynh_node_load_PATH" --target_file="$file"
|
ynh_replace_string --match_string="__YNH_NODE_LOAD_PATH__" --replace_string="$ynh_node_load_PATH" --target_file="$file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Replace others variables
|
# Replace othes variables
|
||||||
|
|
||||||
# List other unique (__ __) variables in $file
|
# List other unique (__ __) variables in $file
|
||||||
local uniques_vars=( $(grep -o '__[A-Z0-9_]*__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
|
local uniques_vars=( $(grep -o '__[A-Z0-9_]*__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
|
||||||
|
|
Loading…
Reference in a new issue