From b360de7a96b80ef8b57a093ce7e39fba1bd0048b Mon Sep 17 00:00:00 2001 From: rodinux Date: Mon, 25 Dec 2023 01:03:17 +0100 Subject: [PATCH] comment condition for older versions --- scripts/upgrade | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2891db8..e545562 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -63,18 +63,14 @@ chmod 644 "/etc/cron.d/$app" # SPECIFIC UPGRADE #================================================= -if ynh_compare_current_package_version --comparison lt --version 1.3.1~ynh1 -then - ynh_script_progression --message="Updating a configuration file..." --weight=5 - - ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php" - chmod 650 "$install_dir/config.local.php" - chown $app:$app "$install_dir/config.local.php" -fi +# if ynh_compare_current_package_version --comparison lt --version 1.3.1~ynh1 +# then +# ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php" +# chmod 650 "$install_dir/config.local.php" +# chown $app:$app "$install_dir/config.local.php" +# fi if [ ! -f "$data_dir/data/config.local.user.php" ]; then - ynh_script_progression --message="Updating a configuration file..." --weight=5 - ynh_add_config --template="config.local.user.php" --destination="$data_dir/config.local.php" chmod 650 "$data_dir/config.local.php" chown $app:$app "$data_dir/config.local.php"