if your database has been restored before installing smeserver-freepbx, the /etc/e-smith/events/actions/freepbx-checkinstall script should just run the instalation from there if you left the /opt/freepbx empty
−
The install script does a mysql db upgrade to the current version and then install the scripts.