From 89e1d416d00dec9250fe164dac0828014b9800f6 Mon Sep 17 00:00:00 2001 From: briandilley Date: Thu, 28 Oct 2004 06:56:31 +0000 Subject: [PATCH] Forgot some shit in the INSTALL instructions. --- INSTALL | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/INSTALL b/INSTALL index 79aefdf..d0b23cc 100755 --- a/INSTALL +++ b/INSTALL @@ -14,12 +14,12 @@ INSTALLING DBI and DBD:Mysql: -------------------------------------------------------------------------------------- At a console: - perl -MCPAN -eshell + > perl -MCPAN -eshell In the CPAN console: - install Bundle::DBI - install DBD::mysql + cpan> install Bundle::DBI + cpan> install DBD::mysql EXTRACTING THE TARBALL: @@ -31,7 +31,7 @@ SETTING UP THE DATABASE: Add the required kwotes tables to the database (in the directory where you extracted kwotes): - mysql -u database_user -D database_name -h database_host_name -p < kwotes.sql + > mysql -u database_user -D database_name -h database_host_name -p < kwotes.sql CONFIGURING KWOTES: -------------------------------------------------------------------------------------- @@ -51,11 +51,25 @@ SETTING PERMISSIONS: -------------------------------------------------------------------------------------- Setting everything to 755 (rwxr-xr-x) doesn't hurt: - cd kwotes-directory; - chmod -R 755 * + > cd kwotes-directory; + > chmod -R 755 * You can come up with something more restrictive if you like. +CRON JOB: +-------------------------------------------------------------------------------------- + To facilite deleting "bad" quotes, kwotes uses cron. To enable this setup a + cron job to run once an hour, like so: + + > crontab -e + + Add the following entry: + + 0 * * * * /path/to/perl /path/to/kwotes.pl cleanup + + Of course you should put the real path to your perl program and to kwotes.pl + otherwise it wont work. + CUSTOMIZING: -------------------------------------------------------------------------------------- Kwotes can be easily customized by editing the files in the "html" directory