summary refs log tree commit diff
path: root/docker/build_debian.sh
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-07-29 15:33:32 +0100
committerAmber Brown <hawkowl@atleastfornow.net>2019-07-30 00:33:32 +1000
commit3b476f57679f21b1bff6c5c90f19e64eaca00fd7 (patch)
treeaae0c02522cf5993d67ffecb7d2836831d6ad0ca /docker/build_debian.sh
parentMerge pull request #5780 from matrix-org/baboliver/loopingcall-args (diff)
downloadsynapse-3b476f57679f21b1bff6c5c90f19e64eaca00fd7.tar.xz
Fix debian packages for sid being called buster. (#5775)
* Fix debian packages for sid being called buster.

I don't know why the sid images return buster as its codename in
`lsb_release` but it does, so lets just grab the codename from the
distro we pass into dockerfile

* Newsfile
Diffstat (limited to '')
-rw-r--r--docker/build_debian.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/build_debian.sh b/docker/build_debian.sh
index 6ed2b39898..f312f0715f 100644
--- a/docker/build_debian.sh
+++ b/docker/build_debian.sh
@@ -4,7 +4,8 @@
 
 set -ex
 
-DIST=`lsb_release -c -s`
+# Get the codename from distro env
+DIST=`cut -d ':' -f2 <<< $distro`
 
 # we get a read-only copy of the source: make a writeable copy
 cp -aT /synapse/source /synapse/build