aboutsummaryrefslogtreecommitdiff
path: root/docker/debian-dev/bootstrap/setup-sbuild.bash
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-11-13 13:46:35 +0800
committercrupest <crupest@outlook.com>2023-11-13 13:47:29 +0800
commite8b8f2e047c8a33e7dd045f1bdaccc9b27e073ea (patch)
tree2d186fe0c334ebd7d4e35e2a3983e60ffc53d375 /docker/debian-dev/bootstrap/setup-sbuild.bash
parentae2797f39d95a4c24c2adb6465cb947e4b5e28ed (diff)
downloadcrupest-e8b8f2e047c8a33e7dd045f1bdaccc9b27e073ea.tar.gz
crupest-e8b8f2e047c8a33e7dd045f1bdaccc9b27e073ea.tar.bz2
crupest-e8b8f2e047c8a33e7dd045f1bdaccc9b27e073ea.zip
(docker:debian-dev) Refactor sources management. Improve build scripts.
Diffstat (limited to 'docker/debian-dev/bootstrap/setup-sbuild.bash')
-rwxr-xr-xdocker/debian-dev/bootstrap/setup-sbuild.bash6
1 files changed, 1 insertions, 5 deletions
diff --git a/docker/debian-dev/bootstrap/setup-sbuild.bash b/docker/debian-dev/bootstrap/setup-sbuild.bash
index b67fb38..f9f1933 100755
--- a/docker/debian-dev/bootstrap/setup-sbuild.bash
+++ b/docker/debian-dev/bootstrap/setup-sbuild.bash
@@ -2,10 +2,6 @@
set -e
-if [[ -f /etc/crupest-apt-source ]]; then
- CRUPEST_DEB_MIRROR=$(cat /etc/crupest-apt-source)
-fi
-
if [[ -z "${SBUILD_ARCH}" ]]; then
SBUILD_ARCH="amd64"
fi
@@ -14,5 +10,5 @@ apt-get install -y sbuild schroot debootstrap
cp /bootstrap/sbuildrc /root/.sbuildrc
-sbuild-createchroot --arch=${SBUILD_ARCH} bullseye /srv/chroot/bullseye-${SBUILD_ARCH}-sbuild ${CRUPEST_DEB_MIRROR}
+sbuild-createchroot --arch=${SBUILD_ARCH} bullseye /srv/chroot/bullseye-${SBUILD_ARCH}-sbuild "https://$(/bootstrap/apt-source/get-domain.bash)/debian"