Update seafile-install.sh

This commit is contained in:
CanbiZ 2025-03-03 16:07:11 +01:00 committed by GitHub
parent 3c34a43f83
commit ea801f7eca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -192,14 +192,20 @@ 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 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 password for the admin account\" {
send \"$ADMIN_PASS\r\"
}
}
expect {
\"Enter the password again:\" {
send \"$ADMIN_PASS\r\"
}
}
expect eof
EOF"