1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00

[fix] Move cron's remove

This commit is contained in:
Maniack Crudelis 2017-08-28 21:41:37 +02:00 committed by GitHub
parent c4a82e2374
commit bed542465e

View file

@ -34,6 +34,9 @@ if [ -z $db_name ]; then # If db_name doesn't exist, create it
ynh_app_setting_set $app db_name $db_name
fi
# Remove old cron job
ynh_secure_remove "/etc/cron.d/$app"
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
@ -116,18 +119,12 @@ sudo -u $app php ${final_path}/update.php --update-schema
chown -R root: $final_path
chown -R $app $final_path/{cache,feed-icons,lock}
#=================================================
# REMOVE OLD CRON JOB
#=================================================
ynh_secure_remove "/etc/cron.d/$app"
#=================================================
# UPGRADE SERVICE
#=================================================
ynh_add_systemd_config
sudo systemctl restart $app
systemctl restart $app
#=================================================
# GENERIC FINALIZATION