mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-20 08:25:50 +08:00
update
This commit is contained in:
@@ -48,7 +48,11 @@ fi
|
|||||||
sh -x $curPath/versions/$2/install.sh $1
|
sh -x $curPath/versions/$2/install.sh $1
|
||||||
|
|
||||||
if [ "${action}" == "install" ];then
|
if [ "${action}" == "install" ];then
|
||||||
# #初始化
|
#初始化
|
||||||
|
|
||||||
|
if [ "$?" != "0" ];then
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
cd ${rootPath} && python3 ${rootPath}/plugins/mysql-apt/index.py start ${type}
|
cd ${rootPath} && python3 ${rootPath}/plugins/mysql-apt/index.py start ${type}
|
||||||
cd ${rootPath} && python3 ${rootPath}/plugins/mysql-apt/index.py initd_install ${type}
|
cd ${rootPath} && python3 ${rootPath}/plugins/mysql-apt/index.py initd_install ${type}
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -35,7 +35,22 @@ if [ "$OSNAME" == "ubuntu" ];then
|
|||||||
VERSION_ID="18.04"
|
VERSION_ID="18.04"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SUFFIX_NAME=${MYSQL_VER}-1${OSNAME}${VERSION_ID}_amd64
|
ARCH="amd64"
|
||||||
|
TMP_ARCH=`arch`
|
||||||
|
if [ "$TMP_ARCH" == "x86_64" ];then
|
||||||
|
ARCH="amd64"
|
||||||
|
elif [ "$TMP_ARCH" == "aarch64" ];then
|
||||||
|
ARCH="arm64"
|
||||||
|
else
|
||||||
|
ARCH="amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$ARCH" != "amd64" ];then
|
||||||
|
echo "暂时不支持该${ARCH}" > $install_tmp
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
SUFFIX_NAME=${MYSQL_VER}-1${OSNAME}${VERSION_ID}_${ARCH}
|
||||||
|
|
||||||
APT_INSTALL()
|
APT_INSTALL()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,12 +30,12 @@ if [ "$TMP_ARCH" == "x86_64" ];then
|
|||||||
elif [ "$TMP_ARCH" == "aarch64" ];then
|
elif [ "$TMP_ARCH" == "aarch64" ];then
|
||||||
ARCH="arm64"
|
ARCH="arm64"
|
||||||
else
|
else
|
||||||
echo $ARCH
|
ARCH="amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$ARCH" != "amd64" ];then
|
if [ "$ARCH" != "amd64" ];then
|
||||||
echo "暂时不支持该${ARCH}" > $install_tmp
|
echo "暂时不支持该${ARCH}" > $install_tmp
|
||||||
exit 0
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user