Update mysql_backup.sh

This commit is contained in:
Naum Soloveychik
2020-01-14 11:28:05 +03:00
parent b7a01df408
commit 89bef17914

View File

@@ -127,7 +127,7 @@ if [ -s ${pidfile} ] ; then
exit 1 ; exit 1 ;
fi fi
trap "rm -f ${pidfile} ;" EXIT INT KILL TERM SIGKILL SIGTERM SIGHUP; trap "rm -f ${pidfile} ;" EXIT INT KILL TERM SIGKILL SIGTERM SIGHUP ERR ;
echo $$ > ${pidfile} ; echo $$ > ${pidfile} ;
@@ -173,6 +173,4 @@ if [ ! "${quiet}" ] ; then
echo "Dump completed (`date +\"%H:%M:%S\"`)..." ; echo "Dump completed (`date +\"%H:%M:%S\"`)..." ;
fi fi
rm -f ${pidfile} ; rm -f ${pidfile} ;
exit 0 ;