diff --git a/scripts/backup b/scripts/backup index e159b99..a2eaffe 100755 --- a/scripts/backup +++ b/scripts/backup @@ -62,6 +62,7 @@ ynh_backup "/etc/cron.d/$app" ynh_backup "/etc/uwsgi/apps-available/$app.ini" ynh_backup "/etc/systemd/system/uwsgi-app@.service" +ynh_backup "/etc/systemd/system/$app-celery.service" #================================================= # BACKUP THE hub binary file diff --git a/scripts/restore b/scripts/restore index d42fc52..b8b5788 100755 --- a/scripts/restore +++ b/scripts/restore @@ -117,6 +117,8 @@ systemctl enable "uwsgi-app@$app.service" # Add as a service yunohost service add "uwsgi-app@$app.service" --log "/var/log/uwsgi/app/$app" +ynh_restore_file "/etc/systemd/system/$app-celery.service" + #================================================= # RESTORE THE CRON FILE #================================================= @@ -135,7 +137,7 @@ ynh_restore_file "/usr/bin/hub" # Start weblate #================================================= -systemctl start "$app-celery" +systemctl start "$app-celery.service" systemctl start "uwsgi-app@$app.service" #=================================================