aboutsummaryrefslogtreecommitdiff
path: root/scuttler
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-08-25 20:02:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-08-25 20:02:27 -0300
commit9b776add4b73348db605dc988ba99f83d281cdbd (patch)
treec693498e44ca5e8ecba62fd1891df94ccec3c971 /scuttler
parent32d0733a7ad32017649f0c0a5ac2b82e85af38db (diff)
downloadhttruta-9b776add4b73348db605dc988ba99f83d281cdbd.tar.gz
httruta-9b776add4b73348db605dc988ba99f83d281cdbd.tar.bz2
Cleanup
Diffstat (limited to 'scuttler')
-rwxr-xr-xscuttler9
1 files changed, 4 insertions, 5 deletions
diff --git a/scuttler b/scuttler
index 0b2b6da..c02e992 100755
--- a/scuttler
+++ b/scuttler
@@ -6,20 +6,19 @@
# Configuration
source config || exit 1
+# Functions
+source lib/httracker/functions || exit 1
+
# Other parameters
BASEDIR=/var/sites/links
SCUTTLEDIR=`basename $( find ${BASEDIR} -maxdepth 1 -iname "SemanticScuttle-*" | head -n 1 )`
CONFIGFILE=${BASEDIR}/${SCUTTLEDIR}/data/config.php
-
-# Load functions
-source lib/httracker/functions || exit 1
-
dbuser=`httracker_scuttle_config dbuser`
dbpass=`httracker_scuttle_config dbpass`
dbname=`httracker_scuttle_config dbname`
dbhost=`httracker_scuttle_config dbhost`
-# Grab URLs from db
+# Get URLs from database
URLS=`mktemp -p ${TMP}`
chown links.links ${URLS}
chmod 600 ${URLS}