forked from bluecherrydvr/bluecherry-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Expect script to drive the interactive scripts/install.sh
- Loading branch information
1 parent
2f1ae84
commit 39d27df
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/expect -f | ||
#exp_internal 1 | ||
set timeout 60 | ||
spawn bluecherry-docker/scripts/install.sh | ||
expect -ex {Do you want to install docker and setup Bluecherry server? [y/n]: } | ||
send -- "y\r" | ||
|
||
expect -ex {Do you want to download and configure the Bluecherry docker images? If this is the first run of the script then select 'y' [y/n]: } | ||
send -- "y\r" | ||
expect -ex {Time Zone (i.e. - America/Chicago): } | ||
send -- "Etc/UTC\r" | ||
expect -ex {Please provide a mysql admin password:} | ||
send -- "mysql-admin-password\r" | ||
expect -ex {Please provide a mysql bluecherry password:} | ||
send -- "mysql-bluecherry-password\r" | ||
|
||
expect -ex {Sleeping 45 seconds to make sure the database is initialized correctly...} | ||
set timeout 60 | ||
expect -ex {Sleeping another 15 seconds to run the database creation scripts...} | ||
|
||
expect -ex {Do you want to configure SMTP settings? [y/n]: } | ||
send -- "n\r" | ||
|
||
expect -ex {Do you want to add a NFS mount? [y/n]: } | ||
send -- "n\r" | ||
|
||
expect eof |