2015-03-22 20:11:55 +00:00
|
|
|
export DISTRO_NAME=debian
|
2016-07-17 17:03:55 +00:00
|
|
|
export DIB_RELEASE=${DIB_RELEASE:-stable}
|
2017-04-02 18:26:13 +00:00
|
|
|
export DIB_INIT_SYSTEM=systemd
|
2016-12-08 23:30:56 +00:00
|
|
|
|
|
|
|
if [ -n "${DIB_DEBIAN_DISTRIBUTION_MIRROR:-}" ]; then
|
|
|
|
DIB_DISTRIBUTION_MIRROR=$DIB_DEBIAN_DISTRIBUTION_MIRROR
|
|
|
|
fi
|
2017-05-19 04:25:47 +00:00
|
|
|
export DIB_DISTRIBUTION_MIRROR=${DIB_DISTRIBUTION_MIRROR:-http://deb.debian.org/debian}
|
2016-12-08 23:30:56 +00:00
|
|
|
|
2019-10-02 16:06:47 +00:00
|
|
|
# With Debian, security is in a different repository. We can't, say,
|
|
|
|
# assume "${DIB_DISTRIBUTION_MIRROR}-security" is valid. The only
|
|
|
|
# choice is for people to add it separately, otherwise we use
|
|
|
|
# upstream.
|
|
|
|
DIB_DEBIAN_SECURITY_MIRROR=${DIB_DEBIAN_SECURITY_MIRROR:-http://security.debian.org/}
|
2019-10-15 21:20:02 +00:00
|
|
|
DIB_DEBIAN_SECURITY_SUBPATH=${DIB_DEBIAN_SECURITY_SUBPATH:-/updates}
|
2019-10-02 16:06:47 +00:00
|
|
|
|
2016-05-11 20:00:12 +00:00
|
|
|
export DIB_DEBIAN_COMPONENTS=${DIB_DEBIAN_COMPONENTS:-main}
|
|
|
|
export DIB_DEBIAN_COMPONENTS_WS=${DIB_DEBIAN_COMPONENTS//,/ }
|
|
|
|
|
|
|
|
DIB_APT_SOURCES_CONF_DEFAULT=\
|
|
|
|
"default:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE} ${DIB_DEBIAN_COMPONENTS_WS}
|
|
|
|
backports:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE}-backports ${DIB_DEBIAN_COMPONENTS_WS}
|
|
|
|
updates:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE}-updates ${DIB_DEBIAN_COMPONENTS_WS}
|
2019-10-15 21:20:02 +00:00
|
|
|
security:deb ${DIB_DEBIAN_SECURITY_MIRROR} ${DIB_RELEASE}${DIB_DEBIAN_SECURITY_SUBPATH} ${DIB_DEBIAN_COMPONENTS_WS}
|
2016-05-11 20:00:12 +00:00
|
|
|
"
|
|
|
|
|
2019-07-01 18:59:14 +00:00
|
|
|
if [ "${DIB_RELEASE}" = "testing" -o "${DIB_RELEASE}" = "unstable" ]; then
|
2016-05-11 20:00:12 +00:00
|
|
|
DIB_APT_SOURCES_CONF_DEFAULT="default:deb ${DIB_DISTRIBUTION_MIRROR} ${DIB_RELEASE} ${DIB_DEBIAN_COMPONENTS_WS}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
export DIB_APT_SOURCES_CONF=${DIB_APT_SOURCES_CONF:-${DIB_APT_SOURCES_CONF_DEFAULT}}
|