mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Merge pull request #370 from YunoHost-Apps/cleanup_install
Cleanup install/upgrade source
This commit is contained in:
commit
dadf0b9d46
1 changed files with 1 additions and 11 deletions
|
@ -53,23 +53,13 @@ install_sources() {
|
||||||
pip3 install --upgrade setuptools wheel pip
|
pip3 install --upgrade setuptools wheel pip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
temp_requirement=$(mktemp)
|
|
||||||
cp $YNH_APP_BASEDIR/conf/requirement_$(lsb_release --codename --short).txt $temp_requirement
|
|
||||||
chown $synapse_user:root $temp_requirement
|
|
||||||
|
|
||||||
chown $synapse_user:root -R $final_path
|
|
||||||
pip3 install --upgrade cffi ndg-httpsclient psycopg2 lxml jinja2
|
pip3 install --upgrade cffi ndg-httpsclient psycopg2 lxml jinja2
|
||||||
sudo -u $synapse_user env PATH=$PATH pip3 install --upgrade -r $temp_requirement
|
pip3 install --upgrade -r $YNH_APP_BASEDIR/conf/requirement_$(lsb_release --codename --short).txt
|
||||||
ynh_secure_remove $temp_requirement
|
|
||||||
|
|
||||||
# This function was defined when we called "source $final_path/bin/activate". With this function we undo what "$final_path/bin/activate" does
|
# This function was defined when we called "source $final_path/bin/activate". With this function we undo what "$final_path/bin/activate" does
|
||||||
set +$u_arg;
|
set +$u_arg;
|
||||||
deactivate
|
deactivate
|
||||||
set -$u_arg;
|
set -$u_arg;
|
||||||
|
|
||||||
# Remove Rust to reduce backup size
|
|
||||||
ynh_secure_remove --file=$final_path/.rustup
|
|
||||||
ynh_secure_remove --file=$final_path/.cargo
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue