1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

fix comparaison

This commit is contained in:
rodinux 2024-04-06 17:40:39 +02:00
parent 086c88946b
commit 650764042c

View file

@ -104,7 +104,7 @@ chown $app:$app "$install_dir/config.local.php"
ynh_replace_string --match_string="//require '$data_dir/data/config.local.user.php';" --replace_string="require '$data_dir/data/config.local.user.php';" --target_file="$install_dir/config.local.php"
if ynh_compare_current_package_version --comparison le --version 1.3.6~ynh2 && [ ! -f "$data_dir/data/config.local.user.php" ]; then
if ynh_compare_current_package_version --comparison le --version 1.3.6~ynh2 && ynh_compare_current_package_version --comparison ge --version 1.3.0~ynh1; then
ynh_script_progression --message="keep old user 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"