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 14:04:43 +02:00
parent 60d88ed7f0
commit b7bc1fd198

View file

@ -123,7 +123,7 @@ if [ ! -f "$data_dir/data/config.local.user.php" ]; then
chown $app:$app "$data_dir/data/config.local.user.php" chown $app:$app "$data_dir/data/config.local.user.php"
fi 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 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" 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" ynh_add_config --template="config.local.user.php" --destination="$data_dir/data/config.local.user.php"