Update seafile-install.sh
This commit is contained in:
parent
4ad28cc3ec
commit
3c34a43f83
@ -192,20 +192,14 @@ msg_info "Setting up Seafile"
|
||||
$STD su - seafile -c "bash /opt/seafile/seafile-server-latest/seafile.sh start"
|
||||
$STD su - seafile -c "expect <<EOF
|
||||
spawn bash /opt/seafile/seafile-server-latest/seahub.sh start
|
||||
expect {
|
||||
\"What is the email for the admin account\" {
|
||||
send \"$ADMIN_EMAIL\r\"
|
||||
}
|
||||
}
|
||||
expect {
|
||||
\"What is the password for the admin account\" {
|
||||
send \"$ADMIN_PASS\r\"
|
||||
}
|
||||
}
|
||||
expect {
|
||||
\"Enter the password again:\" {
|
||||
send \"$ADMIN_PASS\r\"
|
||||
}
|
||||
expect "What is the email for the admin account" {
|
||||
send "$ADMIN_EMAIL\r"
|
||||
}
|
||||
expect "What is the password for the admin account" {
|
||||
send "$ADMIN_PASS\r\"
|
||||
}
|
||||
expect "Enter the password again:" {
|
||||
send "$ADMIN_PASS\r"
|
||||
}
|
||||
expect eof
|
||||
EOF"
|
||||
@ -260,4 +254,4 @@ msg_info "Cleaning up"
|
||||
rm -rf seafile-server_11.0.13_x86-64.tar.gz
|
||||
$STD apt-get -y autoremove
|
||||
$STD apt-get -y autoclean
|
||||
msg_ok "Cleaned"
|
||||
msg_ok "Cleaned"
|
||||
|
Loading…
x
Reference in New Issue
Block a user