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:
parent
d870131aed
commit
94ac910326
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue