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

need the script ynh_app_upstream_version not applied if upgrade force

This commit is contained in:
rodinux 2023-12-28 18:46:34 +01:00
parent d2bc034bb2
commit b1c2c0e8d7

View file

@ -34,6 +34,7 @@ fi
#================================================= #=================================================
if ynh_app_upstream_version --manifest="1.2.8" if ynh_app_upstream_version --manifest="1.2.8"
then then
ynh_script_progression --message="cleaning conf files..." --weight=5
mv "$install_dir/config.local.php" "$install_dir/config.local.php.old" mv "$install_dir/config.local.php" "$install_dir/config.local.php.old"
mv "$install_dir/config.local.yunohost.php" "$install_dir/config.local.php" mv "$install_dir/config.local.yunohost.php" "$install_dir/config.local.php"
chmod 650 "$install_dir/config.local.php" chmod 650 "$install_dir/config.local.php"
@ -41,6 +42,8 @@ then
ynh_secure_remove "$install_dir/config.local.php.old" ynh_secure_remove "$install_dir/config.local.php.old"
ynh_secure_remove "$install_dir/config.local.user.php" ynh_secure_remove "$install_dir/config.local.user.php"
ynh_secure_remove "$install_dir/data/data" ynh_secure_remove "$install_dir/data/data"
else
ynh_script_progression --message="next steps upgrade..." --weight=2
fi fi
#================================================= #=================================================