summaryrefslogtreecommitdiff
path: root/db-import.conf
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-05-17 21:20:56 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-05-17 21:20:56 -0400
commitde330518db13ca0a6bb9d0a4227f842d2a8ca941 (patch)
treeadc4a866f9e9fc659e374bb1a4f40ea19d4ed2f8 /db-import.conf
parent2c55a421d8a431faea07e678dc1f52634355ea65 (diff)
clean up configuration
Diffstat (limited to 'db-import.conf')
-rw-r--r--db-import.conf20
1 files changed, 13 insertions, 7 deletions
diff --git a/db-import.conf b/db-import.conf
index 4330fa9..aaf7b0f 100644
--- a/db-import.conf
+++ b/db-import.conf
@@ -1,13 +1,19 @@
-#/bin/bash # as a hint to text editors
+#!/hint/bash
IMPORTDIR=/srv/repo/import
-_archrepos=(
- {core,extra,testing,staging}-{i686,x86_64}
- {gnome,kde}-unstable-{i686,x86_64}
- community{,-testing,-staging}-{i686,x86_64}
- multilib{,-testing,-staging}-x86_64
-)
+case "$USER" in
+ db-import-packages)
+ _archrepos=(
+ {core,extra,testing,staging}-{i686,x86_64}
+ {gnome,kde}-unstable-{i686,x86_64}
+ );;
+ db-import-community)
+ _archrepos=(
+ community{,-testing,-staging}-{i686,x86_64}
+ multilib{,-testing,-staging}-x86_64
+ );;
+esac
_archpkgmirror=$(db-pick-mirror rsync https://www.archlinux.org/mirrors/status/tier/1/json/)