1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pgadmin_ynh.git synced 2024-09-03 19:56:38 +02:00

Adapt expect script to the new setup.py script

This commit is contained in:
Félix Piédallu 2024-01-31 17:10:33 +01:00
parent e8a56f6c65
commit b5b880e467
2 changed files with 3 additions and 3 deletions

View file

@ -2,9 +2,9 @@
set timeout 20 set timeout 20
set cmd [lindex $argv 0] set cmd [lindex $argv 0]
set path [lindex $argv 1] set arguments [lrange $argv 1 end]
spawn $cmd $path spawn $cmd {*}$arguments
expect "Email address:" expect "Email address:"
send "__EMAIL__\r"; send "__EMAIL__\r";

View file

@ -48,7 +48,7 @@ chown -R "$app:root" "$install_dir"
ynh_add_config --template="setup.exp" --destination="$install_dir/setup.exp" ynh_add_config --template="setup.exp" --destination="$install_dir/setup.exp"
chmod +x "$install_dir/setup.exp" chmod +x "$install_dir/setup.exp"
ynh_exec_as "$app" "$install_dir/setup.exp" "$install_dir/venv/bin/python3" "$install_dir/venv/lib/python$python_version/site-packages/pgadmin4/setup.py" ynh_exec_as "$app" "$install_dir/setup.exp" "$install_dir/venv/bin/python3" "$install_dir/venv/lib/python$python_version/site-packages/pgadmin4/setup.py" setup-db
ynh_add_config --template="server.json" --destination="$install_dir/server.json" ynh_add_config --template="server.json" --destination="$install_dir/server.json"
ynh_exec_as "$app" "$install_dir/venv/bin/python3" "$install_dir/venv/lib/python$python_version/site-packages/pgadmin4/setup.py" --user "$email" --load-servers "$install_dir/server.json" ynh_exec_as "$app" "$install_dir/venv/bin/python3" "$install_dir/venv/lib/python$python_version/site-packages/pgadmin4/setup.py" --user "$email" --load-servers "$install_dir/server.json"