|
@@ -51,11 +51,11 @@
if [ ! -f /var/lock/${DBHOST}.lock ] && [ "${LOCKJOB}" == "1" ] ; then
touch /var/lock/${DBHOST}.lock
- ${AUTOMYSQLBACKUP}
+ sh -c "${AUTOMYSQLBACKUP}"
rm -f /var/lock/${DBHOST}.lock
elif [ "${LOCKJOB}" == "0" ] ; then
- ${AUTOMYSQLBACKUP}
+ sh -c "${AUTOMYSQLBACKUP}"
else
echo "LOCKJOB is enabled and /var/lock/${DBHOST}.lock file was found, please check! Script skips backup for host: ${DBHOST}"
exit 2
@@ -83,11 +83,11 @@
if [ ! -f /var/lock/${DBHOST}.lock ] && [ "${LOCKJOB}" == "1" ] ; then
touch /var/lock/${DBHOST}.lock
- ${AUTOMYSQLBACKUP}
+ sh -c "${AUTOMYSQLBACKUP}"
rm -f /var/lock/${DBHOST}.lock
elif [ "${LOCKJOB}" == "0" ] ; then
- ${AUTOMYSQLBACKUP}
+ sh -c "${AUTOMYSQLBACKUP}"
else
echo "LOCKJOB is enabled and /var/lock/${DBHOST}.lock file was found, please check! Script skips backup for host: ${DBHOST}"
exit 3
|