puppetlabs / puppetlabs-mysql

MySQL Puppet Module / Manifests + Types & Providers
Apache License 2.0
380 stars 796 forks source link

Error displayed when running mysqldump script generated by this module #1574

Open ubellavance opened 1 year ago

ubellavance commented 1 year ago

Hi,

When running the /usr/local/sbin/mysqlbackup.sh script generated by this module, I get this (non-fatal) error:

touch: missing file operand

I can see in the script that there is no argument to touch:

mysqldump --defaults-extra-file=$TMPFILE --opt --flush-logs --single-transaction \
 ${ADDITIONAL_OPTIONS} \
 --all-databases | bzcat -zc > ${DIR}/${PREFIX}`date +%Y%m%d-%H%M%S`.sql.bz2

if [ $? -eq 0 ] ; then
    cleanup
    touch
fi

I can see here that the argument should be backup_success_file_path

Thanks,