######################################################################
####function:install nginx\appstatic 
####author:lance_cao
####create date:2019-11
####modify date:2019-11
######################################################################

#!/bin/bash

pd=$PWD
set -e

#nginx安装模式 0:单机 1：master 2：slave 3：slave ...

##setup nginx##
cd $pd/nginx/
chmod +x installnginx.sh
sh installnginx_alone.sh

## setup keepalived,当模式大于0时，说明是多机，进行安装##
cd $pd/keepalived/
chmod +x install_keepalived.sh
sh installkeepalived_alone.sh

##setup appstatic
echo "setup appstore..."
cd $pd/appstore/
chmod +x installappstore.sh
sh installappstore_alone.sh


##init mc ##
echo "init mc......."
cd $pd/initmc/
chmod +x initmc.sh
sh initmc_alone.sh










