summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-09-14 01:16:55 +0200
committerDan McGee <dan@archlinux.org>2009-09-14 01:16:55 +0200
commit2afa1063284a25ae2691b2727c45238d15025a9a (patch)
tree8e6a65fc6af6feb60652ff177b4cc95e4bf8185f /db-functions
parent5ebf55bedfa891a80170facc79f2fbfca11983c4 (diff)
downloaddbscripts-2afa1063284a25ae2691b2727c45238d15025a9a.tar.gz
dbscripts-2afa1063284a25ae2691b2727c45238d15025a9a.tar.xz
Be more careful with config file inclusion
We can't really do the basedir magic from db-functions as it is just being sourced and is not the currently executing script. Although a bit repetitive, it is a lot safer to just include the config file everywhere. Noticed this when trying to run the latest available scripts on sigurd. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions8
1 files changed, 0 insertions, 8 deletions
diff --git a/db-functions b/db-functions
index ccab830..071fb85 100644
--- a/db-functions
+++ b/db-functions
@@ -3,14 +3,6 @@
# Random integrity things
[ "$UID" = "" ] && UID=$(uid)
-if [ -z "$BASEDIR" ]; then
- BASEDIR="$(dirname $0)"
-fi
-
-if [ -f "$BASEDIR/config" ]; then
- . "$BASEDIR/config"
-fi
-
# Useful functions
UMASK=""