1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00

Fix dependencies on upgrade.

This commit is contained in:
opi 2016-04-24 17:11:24 +02:00
parent 22be99d6e8
commit 8db382e9ee

View file

@ -9,8 +9,7 @@ is_public=$(sudo yunohost app setting searx is_public)
path=${path%/} path=${path%/}
# Check depends installation # Check depends installation
sudo apt-get install git build-essential libxslt-dev python-dev python-virtualenv python-pybabel zlib1g-dev -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 ];
@ -30,7 +29,7 @@ fi
final_path=/opt/yunohost/searx final_path=/opt/yunohost/searx
sudo cp -r ../sources/* $final_path sudo cp -r ../sources/* $final_path
sudo bash -c "source $final_path/bin/activate && pip install -r $final_path/requirements.txt --upgrade" sudo bash -c "source $final_path/bin/activate && pip install -r $final_path/requirements.txt --upgrade && $final_path/manage.py update_packages"
# Disable swapfile # Disable swapfile
if [[ -v "$tmp_swap_file" ]]; if [[ -v "$tmp_swap_file" ]];