mirror of
https://github.com/YunoHost-Apps/ttrss_ynh.git
synced 2024-10-01 13:34:46 +02:00
Fix upgrade
Reconfigure ttrss only if there's an upgrade of the upstream app.
This commit is contained in:
parent
a443cd05cd
commit
f478fd0f3a
1 changed files with 27 additions and 23 deletions
|
@ -125,6 +125,9 @@ ynh_add_fpm_config
|
|||
#=================================================
|
||||
# CONFIGURE TTRSS
|
||||
#=================================================
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Reconfiguring ttrss..." --weight=2
|
||||
|
||||
# Backup the config file in the temp dir
|
||||
|
@ -156,6 +159,7 @@ ynh_script_progression --message="Upgrading ttrss database..." --weight=2
|
|||
|
||||
chown -R $app: $final_path
|
||||
ynh_exec_as $app php ${final_path}/update.php --update-schema
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
|
Loading…
Add table
Reference in a new issue