From b7bc1fd1980c9a51829235a476943ac8e1b73fb0 Mon Sep 17 00:00:00 2001 From: rodinux Date: Sat, 6 Apr 2024 14:04:43 +0200 Subject: [PATCH] fix comparaison --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index a8eed9b..53a568f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -123,7 +123,7 @@ if [ ! -f "$data_dir/data/config.local.user.php" ]; then chown $app:$app "$data_dir/data/config.local.user.php" fi -if ynh_compare_current_package_version --comparison lt 1.3.6~ynh2; then +if ynh_compare_current_package_version --comparison le 1.3.6~ynh2; then ynh_script_progression --message="Adding a configuration file..." --weight=5 mv "$data_dir/data/config.local.user.php" "$data_dir/data/config.local.user.php.old" ynh_add_config --template="config.local.user.php" --destination="$data_dir/data/config.local.user.php"