summaryrefslogtreecommitdiffstats
path: root/db-remove
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-11-12 07:09:24 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2008-11-12 07:09:24 +0100
commit35e5070403ddae96238bcce6356f4b9713c96675 (patch)
tree28be8d3ae5981d28369c2854447964d581915ed4 /db-remove
parent0dcc6b02d0ed7cf25e9493667030ded9525473ce (diff)
downloaddbscripts-35e5070403ddae96238bcce6356f4b9713c96675.tar.gz
dbscripts-35e5070403ddae96238bcce6356f4b9713c96675.tar.xz
Move as much as we can out to a config file
This should allow us to move FTP and SVN placement around Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-remove')
-rwxr-xr-xdb-remove7
1 files changed, 2 insertions, 5 deletions
diff --git a/db-remove b/db-remove
index 01f18d6..bdbd254 100755
--- a/db-remove
+++ b/db-remove
@@ -15,11 +15,8 @@ arch="$3"
export CARCH="$arch"
-##### Arch specific stuff. TODO make this configurable #####
-ftppath="/home/ftp/$reponame/os/$arch/"
-svnpath="file:///home/svn-packages"
+ftppath="$FTP_BASE/$reponame/os/$arch/"
svnrepo="$reponame-$arch"
-############################################################
[ "$UID" = "" ] && UID=$(uid)
@@ -53,7 +50,7 @@ repo_lock $reponame $arch
echo "==> Removing package '$packagename' from '$reponame'..." >&2
cd "$WORKDIR"
-/usr/bin/svn checkout -N $svnpath checkout
+/usr/bin/svn checkout -N $SVN_PATH checkout
cd checkout
/usr/bin/svn up -q $packagename