From 6aab62c381d86d1c5453444d9a4cd2bc65e6673d Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 3 Apr 2019 02:23:06 +0200 Subject: [PATCH] reorder restore script --- scripts/restore | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 0763cba..9eb2b50 100644 --- a/scripts/restore +++ b/scripts/restore @@ -131,7 +131,7 @@ systemctl enable "$app.service" ynh_restore_file "/etc/logrotate.d/$app" #================================================= -# RESTORE THE LOGROTATE CONFIGURATION +# BUILD YARN DEPENDENCIES #================================================= ( @@ -150,6 +150,12 @@ chown -R "$app":"$app" "$final_path" ynh_print_info "Reloading nginx web server and peertube..." systemctl reload nginx + +#================================================= +# START SERVICE +#================================================= +ynh_print_info "Start service..." + systemctl enable "$app" systemctl start "$app" # App needs time to start