From 6356ba687aa8aeb31c9d43e8886788e965a4ba3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 30 Jan 2024 15:50:21 +0100 Subject: [PATCH] useless activate venv --- scripts/install | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index b9696fd..ebd6dbd 100644 --- a/scripts/install +++ b/scripts/install @@ -46,9 +46,7 @@ ynh_script_progression --message="Configuring sqlite database..." # initialisation sqlite database for pgadmin chmod +x ../conf/setup.exp -set +u; -source $install_dir/venv/bin/activate -set -u; + ynh_replace_special_string --match_string "__ADMIN_PASSWORD__" --replace_string "$password" --target_file "../conf/setup.exp" ../conf/setup.exp "$install_dir/venv/bin/python3" "$install_dir/venv/lib/python$python_version/site-packages/pgadmin4/setup.py" "$email" @@ -60,9 +58,6 @@ ynh_psql_execute_as_root \ # Add Server In PGadmin database $install_dir/venv/bin/python3 config_database.py "$db_user" "$db_pwd" -set +u; -deactivate -set -u; # Set permission after initialisation ynh_script_progression --message="Protecting directory"