Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2013-10-28 23:47:33 +0100
committerPetter Reinholdtsen <pere@hungry.com>2013-10-28 23:47:33 +0100
commitfa9b14808e30f758a9b3d8fa081a749916401f15 (patch)
treeccf6eb6ba6c50b9b9f8d0a4e3dbef75872fd0c8a /bin/freedombox-customize
parent29e1eeff7537bbb9926d3dce2c1e3dd570347256 (diff)
Avoid duplicate APT source and suite by passing it using environment variables.
Diffstat (limited to 'bin/freedombox-customize')
-rwxr-xr-xbin/freedombox-customize10
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/freedombox-customize b/bin/freedombox-customize
index 7da6fd8..9f13649 100755
--- a/bin/freedombox-customize
+++ b/bin/freedombox-customize
@@ -31,14 +31,12 @@ password=frdm
chroot $rootdir adduser --gecos $username --disabled-password $username
echo $username:$password | chroot $rootdir /usr/sbin/chpasswd
-suite=jessie
-
cat <<EOF > etc/apt/sources.list
-deb http://http.debian.net/debian/ $suite main contrib non-free
-deb-src http://http.debian.net/debian/ $suite main contrib non-free
+deb $MIRROR $SUITE main contrib non-free
+deb-src $MIRROR $SUITE main contrib non-free
-#deb http://security.debian.org/ $suite/updates main
-#deb-src http://security.debian.org/ $suite/updates main
+#deb http://security.debian.org/ $SUITE/updates main
+#deb-src http://security.debian.org/ $SUITE/updates main
EOF
cat <<EOF > etc/apt/sources.list.d/reinholdtsen-freedombox.list