mirror of
https://github.com/YunoHost-Apps/pgadmin_ynh.git
synced 2024-09-03 19:56:38 +02:00
useless activate venv
This commit is contained in:
parent
eae63a74cf
commit
6356ba687a
1 changed files with 1 additions and 6 deletions
|
@ -46,9 +46,7 @@ ynh_script_progression --message="Configuring sqlite database..."
|
||||||
|
|
||||||
# initialisation sqlite database for pgadmin
|
# initialisation sqlite database for pgadmin
|
||||||
chmod +x ../conf/setup.exp
|
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"
|
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"
|
../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
|
# Add Server In PGadmin database
|
||||||
$install_dir/venv/bin/python3 config_database.py "$db_user" "$db_pwd"
|
$install_dir/venv/bin/python3 config_database.py "$db_user" "$db_pwd"
|
||||||
set +u;
|
|
||||||
deactivate
|
|
||||||
set -u;
|
|
||||||
|
|
||||||
# Set permission after initialisation
|
# Set permission after initialisation
|
||||||
ynh_script_progression --message="Protecting directory"
|
ynh_script_progression --message="Protecting directory"
|
||||||
|
|
Loading…
Add table
Reference in a new issue