seafile_ynh/scripts/expect_scripts/first_launch.exp

21 lines
331 B
Text
Raw Normal View History

#!/usr/bin/expect
set timeout 10
set seafile_dir [lindex $argv 0]
set admin_email [lindex $argv 1]
2018-08-03 15:33:50 +02:00
spawn $seafile_dir/seahub.sh start
expect "for the admin account?"
send "$admin_email\r";
expect "for the admin account?"
2018-01-30 11:32:02 +01:00
send {__ADMIN_PASSWORD__};
send '\r';
expect "Enter the"
2018-01-30 11:32:02 +01:00
send {__ADMIN_PASSWORD__};
send '\r';
interact