1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00

reorder backup script

This commit is contained in:
yalh76 2019-04-03 02:22:50 +02:00
parent d870131aed
commit 94ac910326

View file

@ -29,7 +29,10 @@ final_path=$(ynh_app_setting_get "$app" final_path)
domain=$(ynh_app_setting_get "$app" domain)
db_name=$(ynh_app_setting_get "$app" psql_db)
# Stop Peertube for backup
#=================================================
# STOP PEERTUBE FOR BACKUP
#=================================================
systemctl stop "$app"
#=================================================
@ -73,11 +76,9 @@ ynh_print_info "Backing up systemd configuration..."
ynh_backup "/etc/systemd/system/$app.service"
#=================================================
# RELOAD NGINX
# START PEERTUBE
#=================================================
systemctl reload nginx
systemctl enable "$app"
systemctl start "$app"
# App needs time to start
sleep 30