|
|
@ -7,7 +7,6 @@ rootPath=$(dirname "$curPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
rootPath=$(dirname "$rootPath") |
|
|
|
serverPath=$(dirname "$rootPath") |
|
|
|
serverPath=$(dirname "$rootPath") |
|
|
|
|
|
|
|
|
|
|
|
install_tmp=${rootPath}/tmp/mw_install.pl |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if id www &> /dev/null ;then |
|
|
|
if id www &> /dev/null ;then |
|
|
|
echo "www uid is `id -u www`" |
|
|
|
echo "www uid is `id -u www`" |
|
|
@ -34,12 +33,12 @@ type=$2 |
|
|
|
apt_ver=${type:0:1}.${type:1:2} |
|
|
|
apt_ver=${type:0:1}.${type:1:2} |
|
|
|
|
|
|
|
|
|
|
|
if [ "${2}" == "" ];then |
|
|
|
if [ "${2}" == "" ];then |
|
|
|
echo '缺少安装脚本...' > $install_tmp |
|
|
|
echo '缺少安装脚本...' |
|
|
|
exit 0 |
|
|
|
exit 0 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d $curPath/versions/$2 ];then |
|
|
|
if [ ! -d $curPath/versions/$2 ];then |
|
|
|
echo '缺少安装脚本2...' > $install_tmp |
|
|
|
echo '缺少安装脚本2...' |
|
|
|
exit 0 |
|
|
|
exit 0 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|