mirror of
https://github.com/YunoHost-Apps/searx_ynh.git
synced 2024-09-03 20:16:30 +02:00
Fix dependencies on install.
This commit is contained in:
parent
33a1f613f8
commit
22be99d6e8
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ fi
|
||||||
sudo yunohost app setting searx is_public -v $is_public
|
sudo yunohost app setting searx is_public -v $is_public
|
||||||
|
|
||||||
# Check depends installation
|
# Check depends installation
|
||||||
sudo apt-get install git build-essential libxslt-dev python-dev python-virtualenv python-pybabel zlib1g-dev uwsgi uwsgi-plugin-python python-lxml -y
|
sudo apt-get install git build-essential libxslt-dev python-dev python-virtualenv python-pybabel zlib1g-dev libffi-dev libssl-dev python-lxml uwsgi uwsgi-plugin-python -y
|
||||||
|
|
||||||
# Check Swap
|
# Check Swap
|
||||||
if [ $(sudo swapon -s | wc -l) = 1 ];
|
if [ $(sudo swapon -s | wc -l) = 1 ];
|
||||||
|
@ -43,7 +43,7 @@ then
|
||||||
fi
|
fi
|
||||||
sudo cp -r ../sources/* $final_path
|
sudo cp -r ../sources/* $final_path
|
||||||
sudo virtualenv --system-site-packages $final_path
|
sudo virtualenv --system-site-packages $final_path
|
||||||
sudo bash -c "source $final_path/bin/activate && pip install -r $final_path/requirements.txt"
|
sudo bash -c "source $final_path/bin/activate && pip install -r $final_path/requirements.txt && $final_path/manage.py update_packages"
|
||||||
|
|
||||||
# Disable swapfile
|
# Disable swapfile
|
||||||
if [[ -v "$tmp_swap_file" ]];
|
if [[ -v "$tmp_swap_file" ]];
|
||||||
|
|
Loading…
Add table
Reference in a new issue