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