From 8db382e9ee437e3675f8d77c7bc2187e759b5c2c Mon Sep 17 00:00:00 2001 From: opi Date: Sun, 24 Apr 2016 17:11:24 +0200 Subject: [PATCH] Fix dependencies on upgrade. --- scripts/upgrade | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index cb2ea7d..dbdf67c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,8 +9,7 @@ is_public=$(sudo yunohost app setting searx is_public) path=${path%/} # 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 if [ $(sudo swapon -s | wc -l) = 1 ]; @@ -30,7 +29,7 @@ fi final_path=/opt/yunohost/searx 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 if [[ -v "$tmp_swap_file" ]];