From b3826de6cb02453c37abaa9fd0ceae9f2acbd214 Mon Sep 17 00:00:00 2001 From: ronivay Date: Thu, 8 Oct 2020 16:43:14 +0300 Subject: [PATCH] add little more output if installation fails to service start phase --- xo-install.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/xo-install.sh b/xo-install.sh index 73f47ce..d59b5ab 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -688,14 +688,18 @@ function InstallXO { echo -e " ${COLOR_GREEN}WebUI started in port $PORT. Make sure you have firewall rules in place to allow access.${COLOR_N}" echo -e " ${COLOR_GREEN}Default username: admin@admin.net password: admin${COLOR_N}" echo - printinfo "Installation successful. Enabling xo-server to start on reboot" + printinfo "Installation successful. Enabling xo-server service to start on reboot" cmdlog "/bin/systemctl enable xo-server" echo /bin/systemctl enable xo-server >>$LOGFILE 2>&1 else echo - printfail "Looks like there was a problem when starting xo-server/reading journalctl. Please see logs for more details" - journalctl -u xo-server -n 50 >> $LOGFILE + printfail "Installation completed, but looks like there was a problem when starting xo-server/reading journalctl. Please see logs for more details" + echo "xo-server service log:" >> $LOGFILE + echo "" >> $LOGFILE + journalctl -u xo-server -n 100 >> $LOGFILE + echo + echo "Control xo-server service with systemctl for stop/start/restart etc." exit 1 fi