|
@ -24,7 +24,7 @@ type -p mysql >/dev/null || { |
|
|
case $(lsb_release -is) in |
|
|
case $(lsb_release -is) in |
|
|
Debian) |
|
|
Debian) |
|
|
case $(lsb_release -rs) in |
|
|
case $(lsb_release -rs) in |
|
|
10) |
|
|
|
|
|
|
|
|
10|11|12) |
|
|
apt-get install -y default-mysql-client </dev/null |
|
|
apt-get install -y default-mysql-client </dev/null |
|
|
;; |
|
|
;; |
|
|
*) |
|
|
*) |
|
@ -35,7 +35,10 @@ type -p mysql >/dev/null || { |
|
|
Ubuntu) |
|
|
Ubuntu) |
|
|
apt-get install -y mysql-client </dev/null |
|
|
apt-get install -y mysql-client </dev/null |
|
|
;; |
|
|
;; |
|
|
esac |
|
|
|
|
|
|
|
|
esac || { |
|
|
|
|
|
echo "Error: could not install mysql client" >&2 |
|
|
|
|
|
exit 1 |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if ! [ -e "/root/.my.cnf" ]; then |
|
|
if ! [ -e "/root/.my.cnf" ]; then |
|
|