hey,
Because of the complicated nature of the current auto installation methods (for the cvs demos, developer appliance, and ubuntu packages), I leveraged Andy's new Installer class to improve this stuff. Should also lead the way for third parties to automate their installations.
I attached most recent patch and here's the github branch:
http://github.com/bradymiller/openemr/tree/demo_installer_2
See the comments in the contrib/util/installScripts/InstallerAuto.php for more
details.
It's testing well, and I think it's ready to be committed. Andy, it could
possibly break some of your testing methods, but can fix these postpartum
(if your ok with that).
Any thoughts?
-brady
Auto Intallation Patch
hey,
Updated code even more (incorporated corresponding changes to cvs development demo and also markedly simplified use of the InstallerAuto class. Gihub commit/link is here:
http://github.com/bradymiller/openemr/commit/ade455b4077f2714703f979c4c96c75f6ce391f9
Very cool, so if want to use the Auto Installer from commandline, do the following:
1) Remove exit; command from top of script contrib/util/installScripts/InstallerAuto.php
2) Then run the script from commandline (several examples below):
php -f contrib/util/installScripts/InstallerAuto.php (this will install/configure openemr with default configuration)
php -f contrib/util/installScripts/InstallerAuto.php login=openemr pass=hwerf dbname=openemrdb (this will install/configure openemr with these settings; see the script for the settings that can be set)
To see it in use in a script setting, check out (from above github link):
contrib/util/installScripts/cvsDemoInstall
contrib/util/ubuntu_package_scripts/development/postinst
This should be very helpful for any users/maintainers that want to script installs of openemr. Plan to commit this stuff to the codebase tomorrow unless anybody notes any issues.
-brady
Brady -
This is awesome. I tried to do about half of this work over three days last week, and never really made any good progress. I'm so glad you stepped in and fixed this for us.
I've looked the code over, and it looks great. I'll spend some time running it this morning so that I can understand it better, but I think it will be fine.
Please don't worry about breaking the test suite. If the installer works better, the test suite will eventually work better too.
Thanks!
-Andy