seafile_ynh/conf/first_launch.exp
2018-01-30 23:42:16 +01:00

21 lines
375 B
Text

#!/usr/bin/expect
set timeout 10
set seafile_dir [lindex $argv 0]
set admin_email [lindex $argv 1]
set admin_password [lindex $argv 2]
spawn $seafile_dir/seahub.sh start-fastcgi
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