mdserver-web/plugins/imail/install.sh

24 lines
418 B
Bash
Raw Permalink Normal View History

2022-09-26 05:04:32 -04:00
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
curPath=`pwd`
rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
action=$1
type=$2
if [ "${2}" == "" ];then
2024-11-30 08:44:09 -05:00
echo '缺少安装脚本...'
2022-09-26 05:04:32 -04:00
exit 0
fi
if [ ! -d $curPath/versions/$2 ];then
2024-11-30 08:44:09 -05:00
echo '缺少安装脚本2...'
2022-09-26 05:04:32 -04:00
exit 0
fi
sh -x $curPath/versions/$2/install.sh $1