add check if debian os

This commit is contained in:
mirocow 2015-12-24 17:30:01 +04:00
parent 2abca96dc6
commit b74f33fb52

View file

@ -194,6 +194,12 @@ EXCLUDE_DATA_TABLES=''
BIN_DEPS="mysql mysqldump $COMPRESS"
# === CHECKS ===
if [ -f '/etc/debian_version' ]; then
CONFIG_FILE='/etc/mysql/debian.cnf'
else
CONFIG_FILE='~/mysql_utils/etc/mysql/debian.cnf'
fi
for BIN in $BIN_DEPS; do
which $BIN 1>/dev/null 2>&1
if [ $? -ne 0 ]; then