From c651373a9f1a0a152efae3d7b5d3cc67f3f25148 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Mon, 12 Jun 2023 09:54:07 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 4c0281b..0098afd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -38,7 +38,6 @@ ynh_systemd_action --action="stop" --service_name="${app}_workers" #================================================= ynh_script_progression --message="Installing dependencies..." --weight=23 -ynh_exec_warn_less python3 -m pip install pipenv chmod -R o-rwx "$install_dir" chown -R $app: "$install_dir" @@ -59,6 +58,8 @@ set -a; source "$install_dir/.env"; set +a #================================================= ynh_script_progression --message="Installing Python dependencies..." --weight=3 +ynh_secure_remove $install_dir/.venv + pushd $install_dir python3 -m venv $install_dir/venv source $install_dir/venv/bin/activate