Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 184194
Collapse All | Expand All

(-)old/dspam-3.8.0.cron (-4 / +16 lines)
Lines 256-268 Link Here
256
		fi
256
		fi
257
257
258
		# Run the SQLite3 purge script
258
		# Run the SQLite3 purge script
259
		find "${DSPAM_HOMEDIR}" -name "*.sdb" -exec /usr/bin/sqlite3 "{}" < "${DSPAM_SQLite3_PURGE_SQL}" \; 1>/dev/null 2>&1
259
		find "${DSPAM_HOMEDIR}" -name "*.sdb" -print | while read name
260
                do
261
                    /usr/bin/sqlite3 "$name" < "${DSPAM_SQLite3_PURGE_SQL}"
262
                done 1>/dev/null 2>&1
260
263
261
		# Run the dspam_clean command
264
		# Run the dspam_clean command
262
		run_dspam_clean
265
		run_dspam_clean
263
266
264
		# Optimize the SQLite tables for DSPAM
267
		# Optimize the SQLite tables for DSPAM
265
		find "${DSPAM_HOMEDIR}" -name "*.sdb" -exec echo 'vacuum;' \| /usr/bin/sqlite3 "{}" \;
268
		find "${DSPAM_HOMEDIR}" -name "*.sdb" -print | while read name
269
                do
270
                    echo 'vacuum;' | /usr/bin/sqlite3 "$name"
271
                done
266
272
267
		exit 0
273
		exit 0
268
274
Lines 293-305 Link Here
293
		fi
299
		fi
294
300
295
		# Run the SQLite purge script
301
		# Run the SQLite purge script
296
		find "${DSPAM_HOMEDIR}" -name "*.sdb" -exec /usr/bin/sqlite "{}" < "${DSPAM_SQLite_PURGE_SQL}" \; 1>/dev/null 2>&1
302
		find "${DSPAM_HOMEDIR}" -name "*.sdb" -print | while read name
303
                do
304
                    /usr/bin/sqlite "$name" < "${DSPAM_SQLite_PURGE_SQL}"
305
                done 1>/dev/null 2>&1
297
306
298
		# Run the dspam_clean command
307
		# Run the dspam_clean command
299
		run_dspam_clean
308
		run_dspam_clean
300
309
301
		# Optimize the SQLite tables for DSPAM
310
		# Optimize the SQLite tables for DSPAM
302
		find "${DSPAM_HOMEDIR}" -name "*.sdb" -exec echo 'vacuum;' \| /usr/bin/sqlite "{}" \;
311
		find "${DSPAM_HOMEDIR}" -name "*.sdb" -print | while read name
312
                do
313
                    echo 'vacuum;' | /usr/bin/sqlite "$name"
314
                done
303
315
304
		exit 0
316
		exit 0
305
		
317
		

Return to bug 184194