Update install.sh

This commit is contained in:
midoks
2022-09-28 19:49:35 +08:00
parent 8c41b4c3fa
commit e7d2eddc20
+6 -2
View File
@@ -10,14 +10,18 @@ serverPath=$(dirname "$rootPath")
install_tmp=${rootPath}/tmp/mw_install.pl
VERSION=0.0.15
## cd /www/server/mdserver-web/plugins/imail && bash install.sh install 1.0
# bash install.sh install 0.0.15
## cd /www/server/mdserver-web/plugins/imail && bash install.sh install 0.0.15
bash ${rootPath}/scripts/getos.sh
OSNAME=`cat ${rootPath}/data/osname.pl`
OSNAME_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
ARCH="amd64"
get_arch() {
ARCH="amd64"
TMP_ARCH=`arch`
if [ "$TMP_ARCH" == "x86_64" ];then
ARCH="amd64"