mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
backup optimisation
This commit is contained in:
parent
519bcb9513
commit
bd81e3e39f
1 changed files with 3 additions and 8 deletions
|
@ -32,7 +32,7 @@ db_name=$(ynh_app_setting_get "$app" psql_db)
|
||||||
cache=$(ynh_app_setting_get "$app" cache)
|
cache=$(ynh_app_setting_get "$app" cache)
|
||||||
|
|
||||||
# Stop Pleroma for backup
|
# Stop Pleroma for backup
|
||||||
systemctl stop "$app"
|
yunohost service stop "$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD BACKUP STEPS
|
# STANDARD BACKUP STEPS
|
||||||
|
@ -86,13 +86,8 @@ ynh_backup "/etc/systemd/system/$app.service"
|
||||||
|
|
||||||
#ynh_backup "/etc/cron.d/$app"
|
#ynh_backup "/etc/cron.d/$app"
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# START SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
systemctl reload nginx
|
yunohost service start $app
|
||||||
systemctl enable "$app"
|
|
||||||
systemctl start "$app"
|
|
||||||
# App needs time to start
|
|
||||||
sleep 10
|
|
Loading…
Add table
Reference in a new issue