summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-11-20 21:48:00 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2008-11-20 21:48:00 -0800
commit1809269f1df368aab3f7f1bb615c2cdc52860a1f (patch)
treead7873dda7292178e159f4967af4411920c3a473 /db-functions
parent35e5070403ddae96238bcce6356f4b9713c96675 (diff)
Move everything to /srv to support new server conf
Additionally, make TMPDIR configurable so we can move that Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-functions b/db-functions
index 9724e1c..4252c59 100644
--- a/db-functions
+++ b/db-functions
@@ -20,7 +20,7 @@ source_makepkg () {
}
repo_lock () { #repo_lock repo-name arch
- LOCKFILE="/tmp/.repolck.$1.$2"
+ LOCKFILE="$TMPDIR/.repolock.$1.$2"
if [ -f "$LOCKFILE" ]; then
owner="$(/usr/bin/stat -c %U $LOCKFILE)"
echo "error: db generation is already in progress (started by $owner)"
@@ -31,7 +31,7 @@ repo_lock () { #repo_lock repo-name arch
}
repo_unlock () { #repo_unlock repo-name arch
- LOCKFILE="/tmp/.repolck.$1.$2"
+ LOCKFILE="$TMPDIR/.repolock.$1.$2"
if [ ! -f "$LOCKFILE" ]; then
echo "error: repo lock doesn't exist... something went terribly wrong!"
else