diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-09-13 20:30:27 -0500 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-09-13 20:30:27 -0500 |
commit | 42bbb3dd2ef276c5204651fafb152a888c449c15 (patch) | |
tree | 301098e0ee86f75fd2a963b8c1e842502c126a7b | |
parent | a0f73ceca409fa8995af16eee8440c1467c5f1bf (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-x | db-move | 2 | ||||
-rwxr-xr-x | db-remove | 2 | ||||
-rwxr-xr-x | db-update | 2 | ||||
-rwxr-xr-x | testing2x | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -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 @@ -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 @@ -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="" @@ -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}" |