#!/bin/bash
# Author: shuhui@2015

# 定义版本号
VER='1.2.19'

# 定义下载路径
URL="http://www.keepalived.org/software/keepalived/keepalived-${VER}.tar.gz"
conf_file="http://down.vqiu.cn/conf/Linux_conf/keepalived/keepalved.conf"


function Install {
	cd /usr/local/src
	wget -c ${URL}
    tar zxvf keepalived-${VER}.tar.gz;cd keepalived-${VER}
    ./configure \
		--prefix=/usr/local/keepalived \
		--sysconfdir=/etc
	make;make install

	# 创建软链接
    ln -s  /usr/local/keepalived/sbin/keepalived /usr/sbin/
    ln -s  /usr/local/keepalived/bin/genhash /usr/bin/
}

Install
