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:
parent
e8a56f6c65
commit
b5b880e467
2 changed files with 3 additions and 3 deletions
|
@ -2,9 +2,9 @@
|
|||
set timeout 20
|
||||
|
||||
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:"
|
||||
send "__EMAIL__\r";
|
||||
|
|
|
@ -48,7 +48,7 @@ chown -R "$app:root" "$install_dir"
|
|||
|
||||
ynh_add_config --template="setup.exp" --destination="$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_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"
|
||||
|
|
Loading…
Reference in a new issue