diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2010-05-03 18:17:04 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2010-05-03 18:17:04 +0200 |
commit | ee4074de910df5c637691ace06ec5a9d475fb4a3 (patch) | |
tree | d9a241b9befd7a902d75db3dd068be01af4aec93 /db-update | |
parent | 1e13a032ac0bef748150c60f3b670e57dad2aee5 (diff) | |
download | dbscripts-ee4074de910df5c637691ace06ec5a9d475fb4a3.tar.gz dbscripts-ee4074de910df5c637691ace06ec5a9d475fb4a3.tar.xz |
Add PKGPOOL_DIR config variable
This is a relative var, descendent from FTP_BASE. We do this because
we also need a relative path to the package pool dir
Diffstat (limited to 'db-update')
-rwxr-xr-x | db-update | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -131,11 +131,11 @@ for current_arch in ${ARCHES[@]}; do ftppath="$FTP_BASE/$reponame/os/$current_arch" ftppath_any="$FTP_BASE/$reponame/os/any" - poolpath="$FTP_BASE/packages/os/$current_arch" - poolpath_any="$FTP_BASE/packages/os/any" + poolpath="$FTP_BASE/$PKGPOOL_DIR/os/$current_arch" + poolpath_any="$FTP_BASE/$PKGPOOL_DIR/os/any" # The following is used to create relative symlinks - poolrel="../../../packages/os/$current_arch" - poolrel_any="../../../packages/os/any" + poolrel="../../../$PKGPOOL_DIR/os/$current_arch" + poolrel_any="../../../$PKGPOOL_DIR/os/any" if [ ! -d "$ftppath" ]; then echo "FTP path for this repo ($reponame) is missing" |