forked from neurodebian/neurodebian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmdsettings.sh
25 lines (20 loc) · 838 Bytes
/
cmdsettings.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
family=$1
dist=$2
# basic settings
cowbuilderroot="/home/neurodebian"
buildplace="${cowbuilderroot}/build"
# all currently supported dists
allnddists="nd+debian-wheezy nd+debian-jessie nd+debian-stretch nd+debian-buster nd+debian-sid \
nd+ubuntu-precise nd+ubuntu-trusty nd+ubuntu-xenial nd+ubuntu-yakkety nd+ubuntu-zesty"
alldists="$allnddists debian-wheezy debian-jessie debian-stretch debian-buster debian-sid"
# default is debian
aptcache="${cowbuilderroot}/debian_aptcache"
components="main contrib non-free"
mirror="http://debian.lcs.mit.edu/debian"
# overwrite necessary bits for ubuntu
if [ "${family#nd+}" = "ubuntu" ]; then
aptcache="${cowbuilderroot}/ubuntu_aptcache"
components="main universe multiverse"
mirror="http://ubuntu.media.mit.edu/ubuntu"
fi
if [ ! -d $aptcache ]; then mkdir -p $aptcache; fi