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:23:50 +02:00
parent d8e9d65d36
commit 4433219b07

View file

@ -57,13 +57,6 @@ if [ -d "$install_dir/data/data" ]; then
ynh_secure_remove "$install_dir/data/data"
fi
if ynh_compare_current_package_version --comparison le 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"
chmod 640 "$data_dir/data/config.local.user.php"
chown $app:$app "$data_dir/data/config.local.user.php"
fi
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
@ -111,6 +104,14 @@ 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
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"
chmod 640 "$data_dir/data/config.local.user.php"
chown $app:$app "$data_dir/data/config.local.user.php"
fi
#=================================================
# ADD A CONFIG FILE
#=================================================