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:
parent
08bd696434
commit
1d182631b2
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue