diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-09-29 18:49:10 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-09-29 18:49:10 -0400 |
| commit | f539e7cbd728368d50607299ecfc9da5fc4312be (patch) | |
| tree | 108015e011d16f048639e94b168ab6c90394fa7c /bin/sbotools-update-db.sh | |
| parent | f8b811cf22440ee4f0f2ccedc5b5339bfe00d9e5 (diff) | |
| download | limnoria.slackfacts.plugins-f539e7cbd728368d50607299ecfc9da5fc4312be.tar.gz | |
Apply Tadgy's patch to update the hardcoded file paths.
Diffstat (limited to 'bin/sbotools-update-db.sh')
| -rwxr-xr-x | bin/sbotools-update-db.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bin/sbotools-update-db.sh b/bin/sbotools-update-db.sh index ec6a22f..90f4be3 100755 --- a/bin/sbotools-update-db.sh +++ b/bin/sbotools-update-db.sh @@ -2,16 +2,17 @@ # update the SBoTools.sqlite3 for the SBoTools limnoria plugin. # should be run from cron probably daily. also can be run manually. -# run this as the slackfacts user, not root. +# run this as the ibob user, not root. # configurables: -BOTDIR=/home/slackfacts/supybot +HOMEDIR=/home/ibob +BOTDIR=$HOMEDIR/bot DBFILE=$BOTDIR/SBoTools.sqlite3 -SCRIPT=$BOTDIR/limnoria.slackfacts.plugins/bin/sbodb.pl -SBOTREE=/data/mirrors/slackbuilds.org/15.0 +SCRIPT=$HOMEDIR/bot-plugins/limnoria.slackfacts.plugins/bin/sbodb.pl +SBOTREE=/data/depository/sbo/15.0 SQLITE3=/usr/bin/sqlite3 -LOG=$BOTDIR/sbotools-update-db.log -DATEFILE=$BOTDIR/sbotools-update-db.lastdate +LOG=$BOTDIR/logs/plugins/sbotools-update-db.log +DATEFILE=$BOTDIR/SBoTools.lastdate # 1st line of ChangeLog.txt is the date of the last SBo update. head -n 1 $SBOTREE/ChangeLog.txt > $DATEFILE.new |
