[Pkg-dspam-commits] [pkg-dspam-commits] r171 - trunk/debian
Matthijs Mohlmann
matthijs at alioth.debian.org
Sat Aug 16 09:39:07 UTC 2008
Author: matthijs
Date: Sat Aug 16 09:39:06 2008
New Revision: 171
Log:
* Fix cron script, don't execute cron script when purge file doesn't exist.
Modified:
trunk/debian/changelog
trunk/debian/libdspam7-drv-mysql.cron.daily
Modified: trunk/debian/changelog
==============================================================================
--- trunk/debian/changelog (original)
+++ trunk/debian/changelog Sat Aug 16 09:39:06 2008
@@ -38,7 +38,11 @@
* Fix regression from #388140: remote mySQL server fails (Closes: #481755)
* /etc/init.d/dspam ignored $USER (LP: #232543)(Closes: #483868)
- -- Debian DSPAM Maintainers <pkg-dspam-misc at lists.alioth.debian.org> Fri, 08 Aug 2008 16:29:26 -0400
+ [ Matthijs Mohlmann ]
+ * Don't cleanup mysql database on removal (cron tryed to do that)
+ (Closes: #484889)
+
+ -- Debian DSPAM Maintainers <pkg-dspam-misc at lists.alioth.debian.org> Sat, 16 Aug 2008 11:37:04 +0200
dspam (3.6.8-8.1) unstable; urgency=low
Modified: trunk/debian/libdspam7-drv-mysql.cron.daily
==============================================================================
--- trunk/debian/libdspam7-drv-mysql.cron.daily (original)
+++ trunk/debian/libdspam7-drv-mysql.cron.daily Sat Aug 16 09:39:06 2008
@@ -7,6 +7,9 @@
PURGE=/usr/share/doc/libdspam7-drv-mysql/purge-4.1.sql
MYSQLCONF_PASSWD=/var/run/libdspam7-drv-mysql.cron.passwd
+# If the purge doesn't exist, don't do anything.
+[ ! -f "$PURGE" ] && exit 0
+
if grep -q "^StorageDriver.*mysql_drv.so" $DSPAMCONF; then
if [ -x /usr/bin/mysql ]; then
MYSQL_USER="`grep "^MySQLUser" $MYSQLCONF | awk '{print $2}'`"
More information about the Pkg-dspam-commits
mailing list