mirror of
https://github.com/YunoHost-Apps/funkwhale_ynh.git
synced 2024-09-03 18:36:24 +02:00
commit
5c74852d3f
2 changed files with 25 additions and 0 deletions
|
@ -81,6 +81,19 @@ ynh_add_systemd_config --service="${app}-beat" --template="funkwhale-beat.serv
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Python dependencies..." --weight=1
|
ynh_script_progression --message="Installing Python dependencies..." --weight=1
|
||||||
|
|
||||||
|
if [ $YNH_ARCH == "armhf" ] || [ $YNH_ARCH == "armel" ]
|
||||||
|
then
|
||||||
|
# Install rustup is not already installed
|
||||||
|
# We need this to be able to install cryptgraphy
|
||||||
|
export PATH="$PATH:$install_dir/.cargo/bin:$install_dir/.local/bin:/usr/local/sbin"
|
||||||
|
if [ -e $install_dir/.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
|
||||||
|
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
python3 -m venv $install_dir/venv
|
python3 -m venv $install_dir/venv
|
||||||
source $install_dir/venv/bin/activate
|
source $install_dir/venv/bin/activate
|
||||||
|
|
|
@ -67,6 +67,18 @@ chown -R $app:www-data "$data_dir/"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing Python dependencies..." --weight=1
|
ynh_script_progression --message="Installing Python dependencies..." --weight=1
|
||||||
|
|
||||||
|
if [ $YNH_ARCH == "armhf" ] || [ $YNH_ARCH == "armel" ]
|
||||||
|
then
|
||||||
|
# Install rustup is not already installed
|
||||||
|
# We need this to be able to install cryptgraphy
|
||||||
|
export PATH="$PATH:$install_dir/.cargo/bin:$install_dir/.local/bin:/usr/local/sbin"
|
||||||
|
if [ -e $install_dir/.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
|
||||||
|
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
ynh_secure_remove --file="$install_dir/virtualenv"
|
ynh_secure_remove --file="$install_dir/virtualenv"
|
||||||
ynh_secure_remove --file="$install_dir/venv"
|
ynh_secure_remove --file="$install_dir/venv"
|
||||||
|
|
Loading…
Reference in a new issue