Issue 257: Script to create vars/user.yml file and update it with inputted bz credentials
This script addresses Mark Tompsett suggestions to copy vars/user.yml.sample to new file named vars/user.yml and then update it with the user inputted Bugzilla username and password.
Running this script after setting up kohadevbox would be useful for new, inexperienced users by automating the process around customizing vars/user.yml.
This script also provides something to build on in the future, for example asking and automating the changing of the Koha default database password and setting selenium: true in vars/user.yml
Note: In addition to uncommenting the bz_user and bz_password lines and substituting in the inputted values the script removes the spaces at the beginning of these lines.
Test plan:
-
From the Kohadevbox home directory run the command: ./bin/configurebzconfigs.sh
-
Enter your Bugzilla username and password
-
Go into the vars directory and notice a new file (user.yml) containing uncommented 'bz_user' and 'bz_password' lines with the inputted values.
Sponsored-By: Catalyst IT