Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ww_install.pl to be run with command line option --no-interactive #41

Open
aubreyja opened this issue Jun 29, 2013 · 1 comment
Open
Assignees

Comments

@aubreyja
Copy link
Owner

This will also require command line options for specifying the mysql root password and webwork database password. On ubuntu I think we can pass mysql root password to debconf so we won't be asked for it during the mysql installation. The following lines set the mysql root password using debconf prior to installing mysql:

debconf-set-selections <<< 'mysql-server-<version> mysql-server/root_password password $ROOTPW'
debconf-set-selections <<< 'mysql-server-<version> mysql-server/root_password_again password $ROOTPW'
apt-get -y install mysql-server

On RH, fedora, we'll need to pass that info to mysql_secure_installation or write a script like that which will accept the root password on the command line and do the other actions in that script automatically.

@ghost ghost assigned aubreyja Jun 29, 2013
@aubreyja
Copy link
Owner Author

For good use of GetOpt::Long see using "Getopt::Long" how to check parameter mandatory and esp. this reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant