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 15:41:03 +02:00
parent 4433219b07
commit f4dce8e8a3

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 1.3.6~ynh2; then
if ynh_compare_current_package_version --comparison le --version 1.3.6~ynh2; 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"