[pkg-dspam-commits] r115 - trunk/debian
Jesus Climent
mooch at costa.debian.org
Tue Oct 17 11:33:54 UTC 2006
Author: mooch
Date: Tue Oct 17 11:33:52 2006
New Revision: 115
Modified:
trunk/debian/libdspam7-drv-mysql.cron.daily
trunk/debian/watch
Log:
Modified watch file.
Added a check for the crontab file to find the right host.
Modified: trunk/debian/libdspam7-drv-mysql.cron.daily
==============================================================================
--- trunk/debian/libdspam7-drv-mysql.cron.daily (original)
+++ trunk/debian/libdspam7-drv-mysql.cron.daily Tue Oct 17 11:33:52 2006
@@ -17,7 +17,12 @@
if [ -z "$MYSQL_HOST" ] || [ "${MYSQL_HOST:0:1}" = "/" ]; then
/usr/bin/mysql --user=$MYSQL_USER --password=$MYSQL_PASS $MYSQL_DB < $PURGE
else
- /usr/bin/mysql --host=$MYSQL_HOST --user=$MYSQL_USER --password=$MYSQL_PASS $MYSQL_DB < $PURGE
+ if echo "$MYSQL_HOST" | grep "^/" > /dev/null 2>&1 ; then
+ # Assume it is a socket:
+ /usr/bin/mysql --socket=$MYSQL_HOST --user=$MYSQL_USER --password=$MYSQL_PASS $MYSQL_DB < $PURGE
+ else
+ /usr/bin/mysql --host=$MYSQL_HOST --user=$MYSQL_USER --password=$MYSQL_PASS $MYSQL_DB < $PURGE
+ fi
fi
fi
fi
Modified: trunk/debian/watch
==============================================================================
--- trunk/debian/watch (original)
+++ trunk/debian/watch Tue Oct 17 11:33:52 2006
@@ -3,5 +3,5 @@
# to check for upstream updates and more.
# Site Directory Pattern Version Script
version=2
-http://dspam.nuclearelephant.com /sources dspam-(.*)\.tar\.gz debian uupdate
+http://dspam.nuclearelephant.com/sources/dspam-(.*)\.tar\.gz debian uupdate
More information about the Pkg-dspam-commits
mailing list