mdserver-web/plugins/mysql/install.sh

28 lines
493 B
Bash
Raw Normal View History

2018-10-07 08:38:30 -04:00
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
2018-12-09 21:44:54 -05:00
curPath=`pwd`
rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
2019-03-12 04:28:48 -04:00
install_tmp=${rootPath}/tmp/mw_install.pl
2018-10-07 08:38:30 -04:00
action=$1
2018-12-09 21:44:54 -05:00
type=$2
if [ "${2}" == "" ];then
echo '缺少安装脚本...' > $install_tmp
exit 0
fi
if [ ! -d $curPath/versions/$2 ];then
echo '缺少安装脚本2...' > $install_tmp
exit 0
2018-10-07 08:38:30 -04:00
fi
2018-12-09 21:44:54 -05:00
sh -x $curPath/versions/$2/install.sh $1