aboutsummaryrefslogtreecommitdiff
path: root/bin/sbotools-update-db.sh
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-09-29 18:49:10 -0400
committerB. Watson <urchlay@slackware.uk>2026-09-29 18:49:10 -0400
commitf539e7cbd728368d50607299ecfc9da5fc4312be (patch)
tree108015e011d16f048639e94b168ab6c90394fa7c /bin/sbotools-update-db.sh
parentf8b811cf22440ee4f0f2ccedc5b5339bfe00d9e5 (diff)
downloadlimnoria.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-xbin/sbotools-update-db.sh13
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