From b00c5ee19f504aa4c33e583033ee389c80f9b406 Mon Sep 17 00:00:00 2001 From: Anthony correia Date: Thu, 5 May 2022 20:04:55 +0000 Subject: [PATCH] Update install.sh (Improved message reading) --- install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 853b450..e03fedc 100644 --- a/install.sh +++ b/install.sh @@ -11,8 +11,8 @@ White='\033[0;37m' NORMAL=$(tput sgr0) if [ $(id -u) != 0 ] ; then - echo "Super-user (root) rights are required to install " - echo "Please run 'sudo $0' or login as root, then restart $0" + echo "${Red}Super-user (root) rights are required to install${NORMAL}" + echo "${Red}Please run 'sudo $0' or login as root, then restart $0${NORMAL}" exit 1 fi @@ -26,6 +26,7 @@ apt_install() { step_1_upgrade() { echo "---------------------------------------------------------------------" echo "${Yellow}Starting step 1 Update and base pakage${NORMAL}" + echo "" apt update apt upgrade -y apt install -y curl @@ -36,6 +37,7 @@ step_1_upgrade() { step_2_node_install() { echo "---------------------------------------------------------------------" echo "${Yellow}Starting step 2 Node v14 install${NORMAL}" + echo "" curl -fsSL https://deb.nodesource.com/setup_14.x | bash - apt install -y nodejs echo "${Green}Step 2 completed${NORMAL}" @@ -44,6 +46,7 @@ step_2_node_install() { step_3_yarn_install() { echo "---------------------------------------------------------------------" echo "${Yellow}Starting step 3 Yarn install${NORMAL}" + echo "" npm install --global yarn echo "${Green}Step 3 completed${NORMAL}" } @@ -51,6 +54,7 @@ step_3_yarn_install() { step_4_packages_install() { echo "---------------------------------------------------------------------" echo "${Yellow}Starting step 4 XO packages install${NORMAL}" + echo "" apt install -y build-essential apt install -y redis-server apt install -y libpng-dev @@ -65,6 +69,7 @@ step_4_packages_install() { step_5_fetching_xo_code() { echo "---------------------------------------------------------------------" echo "${Yellow}Starting step 5 fetching the XO code${NORMAL}" + echo "" git clone -b master https://github.com/vatesfr/xen-orchestra echo "${Green}Step 5 completed${NORMAL}" } @@ -72,6 +77,7 @@ step_5_fetching_xo_code() { step_6_dependencies_install() { echo "---------------------------------------------------------------------" echo "${Yellow}Starting step 6 Dependency install${NORMAL}" + echo "" cd xen-orchestra yarn yarn build @@ -84,6 +90,7 @@ step_6_dependencies_install() { step_7_xo_running() { echo "---------------------------------------------------------------------" echo "${Yellow}Starting step 7 running XO${NORMAL}" + echo "" yarn start echo "${Green}Step 7 completed${NORMAL}" }