mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
61d7c8d861
Former-commit-id: 4826866c07
19 lines
351 B
Text
19 lines
351 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\r";
|
|
|
|
expect "Enter the"
|
|
send "$admin_password\r";
|
|
|
|
interact
|