mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
fix setup source
This commit is contained in:
parent
b6fdf2e998
commit
136d04abea
1 changed files with 6 additions and 2 deletions
|
@ -53,10 +53,14 @@ install_sources() {
|
|||
pip3 install --upgrade setuptools wheel pip
|
||||
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
|
||||
chown $synapse_user:root $YNH_APP_BASEDIR/conf/requirement_$(lsb_release --codename --short).txt
|
||||
pip3 install --upgrade cffi ndg-httpsclient psycopg2 lxml jinja2
|
||||
sudo -u $synapse_user env PATH=$PATH pip3 install --upgrade -r $YNH_APP_BASEDIR/conf/requirement_$(lsb_release --codename --short).txt
|
||||
sudo -u $synapse_user env PATH=$PATH pip3 install --upgrade -r $temp_requirement
|
||||
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
|
||||
set +$u_arg;
|
||||
|
|
Loading…
Reference in a new issue