summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-09-13 20:30:27 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-09-13 20:30:27 -0500
commit42bbb3dd2ef276c5204651fafb152a888c449c15 (patch)
tree301098e0ee86f75fd2a963b8c1e842502c126a7b
parenta0f73ceca409fa8995af16eee8440c1467c5f1bf (diff)
Move temporary directories to /home/tmp
This is to allow moves to /home/ftp/ to remain on the same filesystem, thus making the final moves atomic Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xdb-move2
-rwxr-xr-xdb-remove2
-rwxr-xr-xdb-update2
-rwxr-xr-xtesting2x2
4 files changed, 4 insertions, 4 deletions
diff --git a/db-move b/db-move
index 13f2c4e..c8d30c4 100755
--- a/db-move
+++ b/db-move
@@ -27,7 +27,7 @@ svnrepo_to="$repoto-$arch"
[ "$UID" = "" ] && UID=$(uid)
-WORKDIR="/tmp/db-move.$svnrepo_from.$svnrepo_to.$UID"
+WORKDIR="/home/tmp/db-move.$svnrepo_from.$svnrepo_to.$UID"
cleanup() {
# unlock
diff --git a/db-remove b/db-remove
index f4d9419..fdc7c5d 100755
--- a/db-remove
+++ b/db-remove
@@ -23,7 +23,7 @@ svnrepo="$reponame-$arch"
[ "$UID" = "" ] && UID=$(uid)
-WORKDIR="/tmp/db-remove.$svnrepo.$UID"
+WORKDIR="/home/tmp/db-remove.$svnrepo.$UID"
cleanup() {
# unlock
diff --git a/db-update b/db-update
index d3fff2c..dbfbe51 100755
--- a/db-update
+++ b/db-update
@@ -23,7 +23,7 @@ stagedir="$HOME/staging/$reponame"
[ "$UID" = "" ] && UID=$(uid)
-WORKDIR="/tmp/db-update.$svnrepo.$UID"
+WORKDIR="/home/tmp/db-update.$svnrepo.$UID"
ADDPKGS=""
REMPKGS=""
diff --git a/testing2x b/testing2x
index c385fd8..687994e 100755
--- a/testing2x
+++ b/testing2x
@@ -13,7 +13,7 @@ case "$0" in
;;
esac
svnpath="file:///home/svn-packages"
-WORKDIR="$(mktemp -d /tmp/testing2x.XXXXXX)"
+WORKDIR="/home/tmp/testing2x.$UID"
cleanup() {
rm -rf "${WORKDIR}"