From 62379014257a3d9b5cff72d667ab540ec15bda22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 18 Apr 2023 09:42:01 +0200 Subject: [PATCH] fix --- scripts/install | 4 ++-- scripts/upgrade | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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"