seafile_ynh/scripts/expect_scripts/first_launch.exp
Josué Tille 42b062157a fix6.3
2018-08-14 10:31:17 +02:00

20 lines
331 B
Text

#!/usr/bin/expect
set timeout 10
set seafile_dir [lindex $argv 0]
set admin_email [lindex $argv 1]
spawn $seafile_dir/seahub.sh start
expect "for the admin account?"
send "$admin_email\r";
expect "for the admin account?"
send {__ADMIN_PASSWORD__};
send '\r';
expect "Enter the"
send {__ADMIN_PASSWORD__};
send '\r';
interact