mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
check for MySQL and MongoDB client application presence [#METR-18946]
This commit is contained in:
parent
fd7022ae95
commit
e8eb03b3e0
6
run.sh
6
run.sh
@ -1,7 +1,7 @@
|
|||||||
#/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# MySQL
|
# MySQL
|
||||||
if [ -z $(which mysqld) ]; then
|
if [ -z $(which mysqld) ] || [ -z $(which mysqld) ]; then
|
||||||
echo 'Installing MySQL'
|
echo 'Installing MySQL'
|
||||||
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password '
|
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password '
|
||||||
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password '
|
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password '
|
||||||
@ -44,7 +44,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# MongoDB
|
# MongoDB
|
||||||
if [ -z $(which mongod) ]; then
|
if [ -z $(which mongod) ] || [ -z $(which mongo) ]; then
|
||||||
echo 'Installing MongoDB'
|
echo 'Installing MongoDB'
|
||||||
MONGODB_ORG_VERSION=3.0.6
|
MONGODB_ORG_VERSION=3.0.6
|
||||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 &>/dev/null
|
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 &>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user