seafile_ynh/conf/first_launch.exp

19 lines
343 B
Text
Raw Normal View History

2015-02-20 15:07:18 +01:00
#!/usr/bin/expect
set timeout 10
set admin_email [lindex $argv 0]
set admin_password [lindex $argv 1]
2015-02-20 16:56:02 +01:00
spawn /var/www/seafile/seafile-server-4.0.6/seahub.sh start-fastcgi
2015-02-20 15:07:18 +01:00
expect "for the admin account?"
send "$admin_email\r";
expect "for the admin account?"
send "$admin_password\r";
expect "Enter the"
send "$admin_password\r";
interact