@@ -275,6 +275,8 @@
#=====================================================================
# Change Log
#=====================================================================
+# VER 2.6.7 - (2013-07-09)
+# - fix readlink endless loop in qmail detection code
# VER 2.6.6 - (2013-07-04)
# - detect --events support in mysqldump and use it when available
# VER 2.6.5 - (2013-06-26)
@@ -424,8 +426,8 @@
READLINK="`${WHICH} readlink 2>/dev/null`"
function is_sendmail_qmail {
- while [ -h ${SMBIN} ] ; do
- SMBIN=`${READLINK} ${SMBIN}`
+ while [ -L ${SMBIN} ] ; do
+ SMBIN=`${READLINK} -e ${SMBIN}`
done
if [ -z "`echo ${SMBIN} | ${GREP} -i qmail`" ] ; then
echo 0
@@ -509,7 +511,7 @@
DOM=`${DATEC} +%d` # Date of the Month e.g. 27
M=`${DATEC} +%B` # Month e.g January
W=`${DATEC} +%V` # Week Number e.g 37
-VER=2.6.5 # Version Number
+VER=2.6.7 # Version Number
LOGFILE=${BACKUPDIR}/${DBHOST}-`${DATEC} +%N`.log # Logfile Name
LOGERR=${BACKUPDIR}/ERRORS_${DBHOST}-`${DATEC} +%N`.log # Logfile Name
BACKUPFILES=""
|