1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_signal_ynh.git synced 2024-09-03 19:46:07 +02:00

Update upgrade for armhf

This commit is contained in:
rosbeef andino 2023-09-05 20:32:28 +00:00 committed by Félix Piédallu
parent e03b0e2417
commit 084a166f89

View file

@ -139,10 +139,28 @@ chown $app:$app "$final_path/config.yaml"
#================================================= #=================================================
ynh_script_progression --message="Upgrading Mautrix-Bridge Python Module..." --weight=2 ynh_script_progression --message="Upgrading Mautrix-Bridge Python Module..." --weight=2
python3 -m venv $final_path if [ $YNH_ARCH == "armhf" ] || [ $YNH_ARCH == "armel" ]
export HOME=$final_path then
$final_path/bin/pip3 install --upgrade pip setuptools wheel # Install rustup is not already installed
$final_path/bin/pip3 install --upgrade $final_path/src/mautrix-signal.tar.gz[metrics,e2be,formattednumbers,qrlink,stickers] # We need this to be able to install cryptgraphy
export PATH="$PATH:$final_path/.cargo/bin:$final_path/.local/bin:/usr/local/sbin"
if [ -e $final_path/.rustup ]; then
sudo -u "$app" env PATH=$PATH rustup update
else
sudo -u "$app" bash -c 'curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=stable --profile=minimal'
fi
fi
mkdir -p /var/log/$app
pushd $final_path
python3 -m venv $final_path/venv
source $final_path/venv/bin/activate
export HOME=$final_path
ynh_exec_warn_less pip install --upgrade pip setuptools wheel
ynh_exec_warn_less pip install --upgrade $final_path/src/mautrix-signal.tar.gz[metrics,e2be,formattednumbers,qrlink,stickers]
popd
#================================================= #=================================================
# REGISTER SYNAPSE APP-SERVICE # REGISTER SYNAPSE APP-SERVICE