From 052d6926ff73851062c2ea665d1adc68b8dc56ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 20 Dec 2023 18:38:31 +0100 Subject: [PATCH] cleaning --- scripts/install | 3 +-- scripts/restore | 1 - scripts/upgrade | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index bcbf8f6..2b17337 100644 --- a/scripts/install +++ b/scripts/install @@ -17,7 +17,6 @@ ynh_script_progression --message="Setting up source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" -chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" chmod +x "$install_dir/meilisearch" @@ -47,7 +46,7 @@ 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" +ynh_add_config --template="config.toml" --destination="$install_dir/config.toml" chmod 400 "$install_dir/config.toml" chown $app:$app "$install_dir/config.toml" diff --git a/scripts/restore b/scripts/restore index 43802ca..06f5b68 100644 --- a/scripts/restore +++ b/scripts/restore @@ -25,7 +25,6 @@ ynh_script_progression --message="Restoring Meilisearch main directory..." --wei ynh_restore_file --origin_path="$install_dir" -chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" diff --git a/scripts/upgrade b/scripts/upgrade index 61bb941..3a59619 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -67,7 +67,7 @@ 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" +ynh_add_config --template="config.toml" --destination="$install_dir/config.toml" chmod 400 "$install_dir/config.toml" chown $app:$app "$install_dir/config.toml"