From 76724f6ba66ce6a7c21a0d16df168520863d283f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 29 Oct 2023 16:53:17 +0100 Subject: [PATCH] Update install --- scripts/install | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index c860b72..33532a9 100644 --- a/scripts/install +++ b/scripts/install @@ -19,6 +19,7 @@ enable_animation="true" enable_transcoding="false" welcome_message="" enable_sharing="false" +config_path="/var/lib/$app" #================================================= # STORE SETTINGS FROM MANIFEST @@ -31,6 +32,7 @@ ynh_app_setting_set --app=$app --key=enable_animation --value=$enable_animation ynh_app_setting_set --app=$app --key=enable_transcoding --value=$enable_transcoding ynh_app_setting_set --app=$app --key=welcome_message --value=$welcome_message ynh_app_setting_set --app=$app --key=enable_sharing --value=$enable_sharing +ynh_app_setting_set --app=$app --key=config_path --value=$config_path #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -40,6 +42,8 @@ ynh_script_progression --message="Setting up source files..." --weight=4 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" +mkdir -p "$config_path" + chmod -R o-rwx "$install_dir" chown -R $app:$app "$install_dir" @@ -70,11 +74,6 @@ ynh_multimedia_build_main_dir #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 -config_path="/var/lib/$app" -ynh_app_setting_set --app=$app --key=config_path --value=$config_path - -mkdir -p "$config_path" - # Main config File ynh_add_config --template="navidrome.toml" --destination="$config_path/navidrome.toml"