summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-04-29 10:10:43 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-04-29 10:10:43 +0200
commit33cfe12c34747bd52e2730e45566e5b21cd76153 (patch)
tree585d67a38d49fb8c796bc014277ac6c17cab0427 /cron-jobs
parent180e655748dc6fd8c62ca7fa269e4f614ac1e8ca (diff)
downloaddbscripts-33cfe12c34747bd52e2730e45566e5b21cd76153.tar.gz
dbscripts-33cfe12c34747bd52e2730e45566e5b21cd76153.tar.xz
Source the config before the functions as the latter references the former
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/ftpdir-cleanup2
-rwxr-xr-xcron-jobs/integrity-check2
-rwxr-xr-xcron-jobs/sourceballs2
-rwxr-xr-xcron-jobs/update-web-db2
4 files changed, 4 insertions, 4 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
index 7839d50..9bc88d7 100755
--- a/cron-jobs/ftpdir-cleanup
+++ b/cron-jobs/ftpdir-cleanup
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname $0)/../db-functions"
. "$(dirname $0)/../config"
+. "$(dirname $0)/../db-functions"
clean_pkg() {
local pkg
diff --git a/cron-jobs/integrity-check b/cron-jobs/integrity-check
index 044f093..f6c26cf 100755
--- a/cron-jobs/integrity-check
+++ b/cron-jobs/integrity-check
@@ -2,8 +2,8 @@
dirname="$(dirname $0)"
-. "${dirname}/../db-functions"
. "${dirname}/../config"
+. "${dirname}/../db-functions"
script_lock
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index a24676d..d494905 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -1,8 +1,8 @@
#!/bin/bash
dirname="$(dirname $(readlink -e $0))"
-. "${dirname}/../db-functions"
. "${dirname}/../config"
+. "${dirname}/../db-functions"
pushd "${WORKDIR}" >/dev/null
script_lock
diff --git a/cron-jobs/update-web-db b/cron-jobs/update-web-db
index b1767ca..195d1fc 100755
--- a/cron-jobs/update-web-db
+++ b/cron-jobs/update-web-db
@@ -1,7 +1,7 @@
#!/bin/bash
-. "$(dirname $0)/../db-functions"
. "$(dirname $0)/../config"
+. "$(dirname $0)/../db-functions"
# setup paths
SPATH="/srv/http/archweb"