1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

Fix upgrade

This commit is contained in:
yalh76 2022-03-05 14:07:35 +01:00
parent f3dec1623b
commit e54773af2a

View file

@ -159,8 +159,9 @@ upgrade() {
ynh_systemd_action --service_name="$app-celery" --action="stop" ynh_systemd_action --service_name="$app-celery" --action="stop"
ynh_secure_remove --file="${final_path}/venv"
virtualenv --python=python3 "${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' #run source in a 'sub shell'
( (
@ -169,10 +170,9 @@ upgrade() {
set -o nounset set -o nounset
cd "${final_path}" 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 # Tmp fix
sudo --user=$app $final_path/venv/bin/pip install --upgrade cffi==1.14 sudo --user=$app $final_path/venv/bin/pip install --upgrade cffi==1.14
# Still needed with latest version of weblate? # 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 --upgrade Weblate=="$new_version"
sudo --user=$app $final_path/venv/bin/pip install psycopg2-binary ruamel.yaml aeidon phply sudo --user=$app $final_path/venv/bin/pip install psycopg2-binary ruamel.yaml aeidon phply