From 0bd2dbeeaa69c883e35ea155caef2aaf11a38f9e Mon Sep 17 00:00:00 2001 From: ronivay Date: Fri, 14 Dec 2018 15:40:38 +0200 Subject: [PATCH] fix some messages during installation --- xo-install.sh | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/xo-install.sh b/xo-install.sh index 7669ddb..1bb6118 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -93,7 +93,7 @@ function InstallDependenciesCentOS { # only install libvhdi-tools if vhdimount is not present if [[ -z $(which vhdimount) ]]; then echo - echo -n "Installing libvhdi-tools from forensics repository" + echo -n "Installing libvhdi-tools from forensics repository..." rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el7.rpm >/dev/null sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/cert-forensics-tools.repo yum --enablerepo=forensics install -y libvhdi-tools >/dev/null @@ -105,13 +105,16 @@ function InstallDependenciesCentOS { echo -n "Installing build dependencies, redis server, python, git, nfs-utils..." yum -y install gcc gcc-c++ make openssl-devel redis libpng-devel python git nfs-utils >/dev/null echo "done" + echo - - echo "Enabling and starting redis service" + echo -n "Enabling and starting redis service..." /bin/systemctl enable redis >/dev/null && /bin/systemctl start redis >/dev/null + echo "done" - echo "Enabling and starting rpcbind service" + echo + echo -n "Enabling and starting rpcbind service..." /bin/systemctl enable rpcbind >/dev/null && /bin/systemctl start rpcbind >/dev/null + echo "done" } 2>$LOGFILE @@ -130,7 +133,7 @@ function InstallDependenciesDebian { # Install apt-transport-https and ca-certificates because of yarn https repo url echo - echo -n "Installing apt-transport-https and ca-certificates packages to support https repos" + echo -n "Installing apt-transport-https and ca-certificates packages to support https repos..." apt-get install -y apt-transport-https ca-certificates >/dev/null echo "done" @@ -176,12 +179,17 @@ function InstallDependenciesDebian { echo echo -n "Installing build dependencies, redis server, python, git, libvhdi-utils, lvm2, nfs-common..." apt-get install -y build-essential redis-server libpng-dev git python-minimal libvhdi-utils lvm2 nfs-common >/dev/null + echo "done" - echo "Enabling and starting redis service" + echo + echo -n "Enabling and starting redis service..." /bin/systemctl enable redis-server >/dev/null && /bin/systemctl start redis-server >/dev/null + echo "done" - echo "Enabling and starting rpcbind service" + echo + echo -n "Enabling and starting rpcbind service..." /bin/systemctl enable rpcbind >/dev/null && /bin/systemctl start rpcbind >/dev/null + echo "done" } 2>$LOGFILE