diff --git a/scripts/install b/scripts/install index 353292a..bcbf8f6 100644 --- a/scripts/install +++ b/scripts/install @@ -9,8 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -key=$(ynh_string_random --length=16) - #================================================= # DOWNLOAD AND INSTALL MEILISEARCH #================================================= @@ -47,6 +45,8 @@ yunohost service add $app --description="Opensource next generation search API" #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 +key=$(ynh_string_random --length=16) + ynh_add_config --template="../conf/config.toml" --destination="$install_dir/config.toml" chmod 400 "$install_dir/config.toml" diff --git a/scripts/upgrade b/scripts/upgrade index eecf301..aed8358 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -61,6 +61,8 @@ yunohost service add $app --description="Opensource next generation search API" #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 +key=$(ynh_string_random --length=16) + ynh_add_config --template="../conf/config.toml" --destination="$install_dir/config.toml" chmod 400 "$install_dir/config.toml"