diff --git a/scripts/upgrade b/scripts/upgrade index 160af05..c8e8b97 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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