diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-09-11 22:52:23 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-09-11 22:52:23 +0200 |
commit | f121126f8166fb6dc261ea82f2890ba6693d047e (patch) | |
tree | e909b76baee677c75970eff6f5ede36092abd391 /db-update | |
parent | 8768380b62525537e55def81c3273eeb4f9a88d3 (diff) | |
download | dbscripts-f121126f8166fb6dc261ea82f2890ba6693d047e.tar.gz dbscripts-f121126f8166fb6dc261ea82f2890ba6693d047e.tar.xz |
Use local config instead of guessing by hostname
Using the hostname to decide which repos to use is not releiable and hard to test.
Instead use config.local to configure these.
config files for sigurd and gerolde were added which can be copied or symlinked to config.local
on the specific host.
Diffstat (limited to 'db-update')
-rwxr-xr-x | db-update | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,9 +58,9 @@ for repo in ${repos[@]}; do msg2 "${pkgfile} (${pkgarch})" # any packages might have been moved by the previous run if [ -f "${pkg}" ]; then - mv "${pkg}" "$FTP_BASE/$(get_pkgpool_for_host)" + mv "${pkg}" "$FTP_BASE/${PKGPOOL}" fi - ln -s "../../../$(get_pkgpool_for_host)/${pkgfile}" "$FTP_BASE/$repo/os/${pkgarch}" + ln -s "../../../${PKGPOOL}/${pkgfile}" "$FTP_BASE/$repo/os/${pkgarch}" add_pkgs[${#add_pkgs[*]}]=${pkgfile} done if [ ${#add_pkgs[@]} -ge 1 ]; then |