Added HOME variable to mysql-backup script to enable use of .my.cnf
This commit is contained in:
parent
ac5d6987d3
commit
6f5f738833
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue