Added HOME variable to mysql-backup script to enable use of .my.cnf

This commit is contained in:
Ossi Salmi 2012-06-05 12:57:51 +03:00
parent ac5d6987d3
commit 6f5f738833

View file

@ -4,6 +4,7 @@ DESTDIR="<%= mysql_backup_datadir %>"
MAXAGE="<%= mysql_backup_maxage %>"
DATE=`date "+%Y-%m-%d"`
HOME="/root"
if [ ! -d ${DESTDIR} ]; then
echo "ERR: MySQL backup directory [${DESTDIR}] does not exist" 1>&2