1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

Fix backup and restore for celery

This commit is contained in:
Jean-Baptiste Holcroft 2018-10-25 08:01:46 +02:00
parent 08bd696434
commit 1d182631b2
2 changed files with 4 additions and 1 deletions

View file

@ -62,6 +62,7 @@ ynh_backup "/etc/cron.d/$app"
ynh_backup "/etc/uwsgi/apps-available/$app.ini" ynh_backup "/etc/uwsgi/apps-available/$app.ini"
ynh_backup "/etc/systemd/system/uwsgi-app@.service" ynh_backup "/etc/systemd/system/uwsgi-app@.service"
ynh_backup "/etc/systemd/system/$app-celery.service"
#================================================= #=================================================
# BACKUP THE hub binary file # BACKUP THE hub binary file

View file

@ -117,6 +117,8 @@ systemctl enable "uwsgi-app@$app.service"
# Add as a service # Add as a service
yunohost service add "uwsgi-app@$app.service" --log "/var/log/uwsgi/app/$app" 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 # RESTORE THE CRON FILE
#================================================= #=================================================
@ -135,7 +137,7 @@ ynh_restore_file "/usr/bin/hub"
# Start weblate # Start weblate
#================================================= #=================================================
systemctl start "$app-celery" systemctl start "$app-celery.service"
systemctl start "uwsgi-app@$app.service" systemctl start "uwsgi-app@$app.service"
#================================================= #=================================================