mirror of
https://github.com/YunoHost-Apps/pgadmin_ynh.git
synced 2024-09-03 19:56:38 +02:00
21 lines
303 B
Text
21 lines
303 B
Text
#!/usr/bin/expect
|
|
set timeout 20
|
|
|
|
set cmd [lindex $argv 0]
|
|
set path [lindex $argv 1]
|
|
set user [lindex $argv 2]
|
|
|
|
spawn $cmd $path
|
|
|
|
expect "Email address:"
|
|
send "$user\r";
|
|
|
|
expect "Password:"
|
|
send {__ADMIN_PASSWORD__};
|
|
send "\r";
|
|
|
|
expect "Retype password:"
|
|
send {__ADMIN_PASSWORD__};
|
|
send "\r";
|
|
|
|
interact
|