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:
parent
d2bc034bb2
commit
b1c2c0e8d7
1 changed files with 10 additions and 7 deletions
|
@ -34,13 +34,16 @@ fi
|
|||
#=================================================
|
||||
if ynh_app_upstream_version --manifest="1.2.8"
|
||||
then
|
||||
mv "$install_dir/config.local.php" "$install_dir/config.local.php.old"
|
||||
mv "$install_dir/config.local.yunohost.php" "$install_dir/config.local.php"
|
||||
chmod 650 "$install_dir/config.local.php"
|
||||
chown $app:$app "$install_dir/config.local.php"
|
||||
ynh_secure_remove "$install_dir/config.local.php.old"
|
||||
ynh_secure_remove "$install_dir/config.local.user.php"
|
||||
ynh_secure_remove "$install_dir/data/data"
|
||||
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.yunohost.php" "$install_dir/config.local.php"
|
||||
chmod 650 "$install_dir/config.local.php"
|
||||
chown $app:$app "$install_dir/config.local.php"
|
||||
ynh_secure_remove "$install_dir/config.local.php.old"
|
||||
ynh_secure_remove "$install_dir/config.local.user.php"
|
||||
ynh_secure_remove "$install_dir/data/data"
|
||||
else
|
||||
ynh_script_progression --message="next steps upgrade..." --weight=2
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue