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:
parent
c4a82e2374
commit
bed542465e
1 changed files with 4 additions and 7 deletions
|
@ -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
|
ynh_app_setting_set $app db_name $db_name
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove old cron job
|
||||||
|
ynh_secure_remove "/etc/cron.d/$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# 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 root: $final_path
|
||||||
chown -R $app $final_path/{cache,feed-icons,lock}
|
chown -R $app $final_path/{cache,feed-icons,lock}
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# REMOVE OLD CRON JOB
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
ynh_secure_remove "/etc/cron.d/$app"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE SERVICE
|
# UPGRADE SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
sudo systemctl restart $app
|
systemctl restart $app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Reference in a new issue