Hello.
I did some changes in install_amp, so it would be more package friendly. Making questions to the user when installing makes packaging much more difficult.
I try to make the changes as little intrusive as i could.
with this changes, i can execute
./install_amp --fopwebroot=/usr/local/www/data/FreePBX/panel --webroot=/usr/local/www/data/FreePBX --cgibin=/usr/local/www/cgi-bin --bin=/usr/local/bin --sbin=/usr/local/sbin --asteriskuser=asteriskUsuario --asteriskpass=MiClave? --systemconfig=/usr/local/etc --dbhost=10.0.0.10 --username=asteriskuser --password=amp109
and this would let me with a working FreePBX base to use on FreeBSD
Apart of the patch, there is something would like to discuss: the dependency the installer has, about the mysql database. It needs to be set up before running the script, so it can apply the update scripts. It would be much nicer, to no have this dependency, as normally, the instalation of software comes before the configuration of it. Making the database avaible is something admins do after instaling software.
It would be nice if you could provide a simple pair of .sql script so be executed after instalation, just like version 2.0.0, and move this out of install_amp. Maybe providing a config_amp.
I think this would make packaging more easily too.
Hope my text was understandable :-]