From 53882fe450a866cb2d687d148c6960942c051dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 27 Oct 2022 06:43:39 +0200 Subject: [PATCH] Fix arm64 install --- scripts/_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index d3ca72f..0ee02cc 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -18,7 +18,7 @@ install_sources() { mkdir -p $final_path chown $synapse_user:root -R $final_path - if [ -n "$(uname -m | grep arm)" ] + if uname -m | grep 'arm|aarch64' then # Clean old file, sometimes it could make some big issues if we don't do this!! ynh_secure_remove --file=$final_path/bin @@ -51,7 +51,7 @@ install_sources() { 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