1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/horde_ynh.git synced 2024-09-03 19:16:08 +02:00
horde_ynh/conf/config_horde.exp

50 lines
1 KiB
Text
Raw Normal View History

2018-02-06 14:33:23 +01:00
#!/usr/bin/expect
set timeout 10
2023-11-02 22:33:38 +01:00
set install_dir [lindex $argv 0]
2018-02-06 14:33:23 +01:00
set db_name [lindex $argv 1]
set db_user [lindex $argv 2]
set db_password [lindex $argv 3]
set admin_user [lindex $argv 4]
2023-11-02 22:33:38 +01:00
spawn php -d include_path=$install_dir/pear/php $install_dir/pear/webmail-install
2018-02-06 14:33:23 +01:00
expect "What database backend should we use?"
send "mysql\r";
expect "Username to connect to the database as"
send "$db_user\r";
expect "Password to connect with"
send "$db_password\r";
expect "How should we connect to the database?"
send "tcp\r";
expect "Database server/host"
send "localhost\r";
expect "Port the DB is running on, if non-standard"
send "3306\r";
expect "Database name to use"
send "$db_name\r";
expect "Internally used charset"
send "\r";
expect "Use SSL to connect to the server?"
send "false\r";
expect "Split reads to a different server?"
send "false\r";
expect "level to your configured logger."
send "0\r";
expect "Specify an existing mail user who you want to give administrator"
send "$admin_user\r";
2018-02-12 18:09:09 +01:00
interact
wait