From d7e9813f9b1d494ca1c849247b3336696515e231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 28 May 2022 14:16:59 +0200 Subject: [PATCH] Fix install on bullseye --- scripts/_common.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index b4c43a7..d3ca72f 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -46,7 +46,12 @@ install_sources() { set +$u_arg; source $final_path/bin/activate set -$u_arg; - pip3 install --upgrade setuptools wheel pip + if [ $(lsb_release --codename --short) == "bullseye" ]; then + pip3 install --upgrade setuptools==60.8.2 wheel pip + else + pip3 install --upgrade setuptools wheel pip + fi + chown $synapse_user:root -R $final_path sudo -u $synapse_user env PATH=$PATH pip3 install --upgrade 'cryptography>=3.4.7' pip3 install --upgrade cffi ndg-httpsclient psycopg2 lxml jinja2