check for MySQL and MongoDB client application presence [#METR-18946]

This commit is contained in:
Andrey Mironov 2015-12-11 12:14:09 +03:00
parent fd7022ae95
commit e8eb03b3e0
2 changed files with 4 additions and 4 deletions

6
run.sh
View File

@ -1,7 +1,7 @@
#/bin/sh
#!/bin/sh
# MySQL
if [ -z $(which mysqld) ]; then
if [ -z $(which mysqld) ] || [ -z $(which mysqld) ]; then
echo 'Installing MySQL'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password '
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password '
@ -44,7 +44,7 @@ else
fi
# MongoDB
if [ -z $(which mongod) ]; then
if [ -z $(which mongod) ] || [ -z $(which mongo) ]; then
echo 'Installing MongoDB'
MONGODB_ORG_VERSION=3.0.6
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 &>/dev/null