From 0bf5691258bbbf9737928a553ce9bd3f3495c74b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 12 Nov 2019 06:30:36 +0100 Subject: Adding preseedable mirrors. Signed-off-by: Daniel Baumann --- debian/progress-linux.postinst | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'debian/progress-linux.postinst') diff --git a/debian/progress-linux.postinst b/debian/progress-linux.postinst index 8dc75c6..a87c66a 100755 --- a/debian/progress-linux.postinst +++ b/debian/progress-linux.postinst @@ -4,7 +4,6 @@ set -e PROJECT="progress-linux" DOMAIN="progress-linux.org" -PACKAGES="https://cdn.deb.progress-linux.org/packages" Install_apt_sources () { @@ -46,7 +45,7 @@ Configure_apt_sources () esac cat >> "/etc/apt/sources.list.d/${PROJECT}.list" << EOF -deb [signed-by=/usr/share/progress-linux/pgp-keys/apt.progress-linux.org.gpg] ${PACKAGES} ${ARCHIVE} ${AREAS} +deb [signed-by=/usr/share/progress-linux/pgp-keys/apt.progress-linux.org.gpg] ${MIRROR_PROGRESS_LINUX} ${ARCHIVE} ${AREAS} EOF } @@ -133,6 +132,15 @@ case "${1}" in db_get ${PROJECT}/archive-areas ARCHIVE_AREAS="$(echo ${RET:-main} | sed -e 's|, | |g')" # string w/o empty + db_get ${PROJECT}/mirror-progress-linux # string w/o empty + MIRROR_PROGRESS_LINUX="${RET:-https://cdn.deb.progress-linux.org/packages}" + + db_get ${PROJECT}/mirror-debian # string w/o empty + MIRROR_DEBIAN="${RET:-https://deb.debian.org/debian}" + + db_get ${PROJECT}/mirror-debian-security # string w/o empty + MIRROR_DEBIAN_SECURITY="${RET:-http://security.debian.org}" + db_stop BACKPORTS_PRIORITY="100" -- cgit v1.2.3