summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShireesh Anjal <shireesh@gluster.com>2011-12-01 16:16:43 +0530
committerShireesh Anjal <shireesh@gluster.com>2011-12-01 16:27:58 +0530
commit752feb267e7414a001c20a0e6ebe872f72f8b29e (patch)
tree2c7356d29bae0f9488cd1466a347af59df3d27c3
parentcb350f8dad28248015086b3eb67bb2946dbd0541 (diff)
Added pre-check for chkconfig
-rwxr-xr-xbuild/gmg-backend-install.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/build/gmg-backend-install.sh b/build/gmg-backend-install.sh
index 389c5094..54f7023b 100755
--- a/build/gmg-backend-install.sh
+++ b/build/gmg-backend-install.sh
@@ -22,7 +22,8 @@
# Variables
USAGE_ERR=1
FUSE_ERR=2
-TAR_ERR=3
+CHKCONFIG_ERR=3
+TAR_ERR=4
GMGBE_ROOT_DIR="/opt/glustermg"
function quit()
@@ -36,7 +37,11 @@ function pre()
{
modprobe -q fuse
if ! lsmod | grep -qw fuse; then
- quit "FATAL: fuse kernel module is not found." ${FUSE_ERR}
+ quit "fuse kernel module is not found!" ${FUSE_ERR}
+ fi
+
+ if [ ! -f /sbin/chkconfig ]; then
+ quit "/sbin/chkconfig not found!" ${CHKCONFIG_ERR}
fi
}