1
0
Fork 0
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:
Maniack Crudelis 2019-05-13 20:17:41 +02:00 committed by GitHub
parent a443cd05cd
commit f478fd0f3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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