From 175db6e45cd3582903d2cbb15f8cb480dba4bb48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 21 Jul 2024 20:12:11 +0200 Subject: [PATCH] fix --- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 83c32c6..a6d2ac4 100644 --- a/scripts/install +++ b/scripts/install @@ -19,7 +19,7 @@ chown -R $app:www-data "$install_dir" #================================================= # APP INITIAL CONFIGURATION #================================================= -ynh_script_progression --message="Adding $app's configuration files..." --weight=1 +ynh_script_progression "Adding $app's configuration files..." ynh_config_add --template="conf.php" --destination="$install_dir/cfg/conf.php" diff --git a/scripts/restore b/scripts/restore index cf4ac41..6e925e2 100644 --- a/scripts/restore +++ b/scripts/restore @@ -17,7 +17,7 @@ chown -R $app:www-data "$install_dir" #================================================= # RESTORE THE DATA DIRECTORY #================================================= -ynh_script_progression --message="Restoring the data directory..." --weight=1 +ynh_script_progression "Restoring the data directory..." ynh_restore_file --origin_path="$data_dir" --not_mandatory diff --git a/scripts/upgrade b/scripts/upgrade index 73baf77..6696d64 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -6,7 +6,7 @@ source /usr/share/yunohost/helpers ynh_app_setting_set_default --key=php_memory_limit --value=50M if ynh_app_upgrading_from_version_before 1.7.3~ynh1; then - ynh_script_progression --message="Moving data..." --weight=3 + ynh_script_progression "Moving data..." mv $install_dir/data/* $data_dir/ fi @@ -24,7 +24,7 @@ chown -R $app:www-data "$install_dir" #================================================= # UPDATE A CONFIG FILE #================================================= -ynh_script_progression --message="Updating $app's configuration files..." --weight=1 +ynh_script_progression "Updating $app's configuration files..." ynh_config_add --template="conf.php" --destination="$install_dir/cfg/conf.php"