From e54773af2a8e848c327ceae74d79bc596f9944b4 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 5 Mar 2022 14:07:35 +0100 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 91e7e31..029cd8a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -159,8 +159,9 @@ upgrade() { ynh_systemd_action --service_name="$app-celery" --action="stop" + ynh_secure_remove --file="${final_path}/venv" virtualenv --python=python3 "${final_path}/venv" - chown -R "$app": "$final_path" + chown -R $app: "$final_path" #run source in a 'sub shell' ( @@ -169,10 +170,9 @@ upgrade() { set -o nounset cd "${final_path}" - sudo --user=$app $final_path/venv/bin/pip install --upgrade pip + sudo --user=$app $final_path/venv/bin/pip install --upgrade pip setuptools wheel # Tmp fix sudo --user=$app $final_path/venv/bin/pip install --upgrade cffi==1.14 - # Still needed with latest version of weblate? sudo --user=$app $final_path/venv/bin/pip install --upgrade Weblate=="$new_version" sudo --user=$app $final_path/venv/bin/pip install psycopg2-binary ruamel.yaml aeidon phply