mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:39:26 +08:00
Update install.sh
This commit is contained in:
@@ -39,9 +39,17 @@ Install_App()
|
||||
fi
|
||||
|
||||
|
||||
INSTALL_CMD=cmake
|
||||
# check cmake version
|
||||
CMAKE_VERSION=`cmake -version | grep version | awk '{print $3}' | awk -F '.' '{print $1}'`
|
||||
if [ "$CMAKE_VERSION" -eq "2" ];then
|
||||
mkdir -p /var/log/mariadb
|
||||
touch /var/log/mariadb/mariadb.log
|
||||
INSTALL_CMD=cmake3
|
||||
fi
|
||||
|
||||
mkdir -p $serverPath/mosquitto
|
||||
cd mosquitto-${VERSION} && cmake CMakeLists.txt -DCMAKE_INSTALL_PREFIX=$serverPath/mosquitto && make install
|
||||
cd mosquitto-${VERSION} && ${INSTALL_CMD} CMakeLists.txt -DCMAKE_INSTALL_PREFIX=$serverPath/mosquitto && make install
|
||||
|
||||
|
||||
if [ -d $serverPath/mosquitto ];then
|
||||
|
||||
Reference in New Issue
Block a user