diff options
-rw-r--r-- | config | 5 | ||||
-rw-r--r-- | db-functions | 4 | ||||
-rwxr-xr-x | db-move | 2 | ||||
-rwxr-xr-x | db-remove | 2 | ||||
-rwxr-xr-x | db-update | 2 | ||||
-rwxr-xr-x | testing2x | 2 |
6 files changed, 9 insertions, 8 deletions
@@ -1,4 +1,5 @@ -FTP_BASE="/home/ftp/" -SVN_PATH="file:///home/svn-packages" +FTP_BASE="/srv/ftp/" +SVN_PATH="file:///srv/svn/packages" STAGING="$HOME/staging/" +TMPDIR="/srv/tmp" 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 @@ -24,7 +24,7 @@ svnrepo_to="$repoto-$arch" [ "$UID" = "" ] && UID=$(uid) -WORKDIR="/home/tmp/db-move.$svnrepo_from.$svnrepo_to.$UID" +WORKDIR="$TMPDIR/db-move.$svnrepo_from.$svnrepo_to.$UID" cleanup() { # unlock @@ -20,7 +20,7 @@ svnrepo="$reponame-$arch" [ "$UID" = "" ] && UID=$(uid) -WORKDIR="/home/tmp/db-remove.$svnrepo.$UID" +WORKDIR="$TMPDIR/db-remove.$svnrepo.$UID" cleanup() { # unlock @@ -20,7 +20,7 @@ stagedir="$STAGING/$reponame" [ "$UID" = "" ] && UID=$(uid) -WORKDIR="/home/tmp/db-update.$svnrepo.$UID" +WORKDIR="$TMPDIR/db-update.$svnrepo.$UID" ADDPKGS="" REMPKGS="" @@ -12,7 +12,7 @@ case "$0" in arch="i686" ;; esac -WORKDIR="/home/tmp/testing2x.$UID" +WORKDIR="$TMPDIR/testing2x.$UID" cleanup() { rm -rf "${WORKDIR}" |