6 POOLPATH="${DAKBASE}/ftp/pool/"
8 echo "Setting up archive and locations"
9 psql -c "INSERT INTO archive (name, origin_server, description)
10 VALUES ('${DAKHOST}', '${DAKFQDN}', 'Master server')" >/dev/null
12 for component in main contrib non-free; do
13 psql -c "INSERT INTO location (path, type, component, archive)
14 VALUES ('${POOLPATH}', 'pool',
15 (SELECT id FROM component WHERE name = '${component}'),
16 (SELECT id FROM archive WHERE name = '${DAKHOST}'))" >/dev/null