diff -Nur --no-dereference smeserver-freepbx-14.old/createlinks smeserver-freepbx-14/createlinks --- smeserver-freepbx-14.old/createlinks 2022-12-14 23:37:45.763000000 -0500 +++ smeserver-freepbx-14/createlinks 2022-12-15 00:07:43.397000000 -0500 @@ -3,8 +3,8 @@ use esmith::Build::CreateLinks qw(:all); # force default php to php56 -safe_symlink("/usr/bin/php56", "root/usr/sbin/php"); -safe_symlink("/usr/bin/php56", "root/usr/local/sbin/php"); +safe_symlink("/usr/bin/php74", "root/usr/sbin/php"); +safe_symlink("/usr/bin/php74", "root/usr/local/sbin/php"); #safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/httpd-fpbx'); #safe_symlink("/var/service/httpd-fpbx" , 'root/service/httpd-fpbx'); @@ -21,6 +21,7 @@ templates2events("/etc/asterisk/cdr_mysql.conf", qw(freepbx-update bootstrap-console-save)); templates2events("/etc/asterisk/manager.conf", qw(freepbx-update bootstrap-console-save)); templates2events("/etc/logrotate.d/asterisk", qw(freepbx-update bootstrap-console-save)); +templates2events("/etc/odbc.ini", qw(freepbx-update bootstrap-console-save)); templates2events("/etc/httpd/conf/httpd.conf", $event); templates2events("/etc/httpd/fpbx-conf/httpd.conf", qw(freepbx-update bootstrap-console-save conf-userpanel)); templates2events("/etc/e-smith/sql/init/30freepbx_mysql_create_database", qw(freepbx-update bootstrap-console-save)); @@ -67,7 +68,7 @@ templates2events("/etc/e-smith/sql/init/30freepbx_mysql_create_database", $event); #templates2events("/etc/opt/remi/php56/php-fpm.d/www.conf", $event); templates2events("/opt/remi/php56/root/etc/php-fpm.d/www.conf", $event); - +templates2events("/etc/odbc.ini", $event); event_link("freepbx-checkinstall", $event, "10"); event_link("freepbx-checkinstall-backup", $event, "11"); diff -Nur --no-dereference smeserver-freepbx-14.old/root/etc/e-smith/events/actions/freepbx-checkinstall smeserver-freepbx-14/root/etc/e-smith/events/actions/freepbx-checkinstall --- smeserver-freepbx-14.old/root/etc/e-smith/events/actions/freepbx-checkinstall 2022-12-14 23:37:45.781000000 -0500 +++ smeserver-freepbx-14/root/etc/e-smith/events/actions/freepbx-checkinstall 2022-12-14 23:40:43.021000000 -0500 @@ -53,6 +53,19 @@ # Upgrades have to be done through freePBX and the online repository if [ ! -d /opt/freepbx/admin ]; then mkdir -p /opt/freepbx + # we need the right php version available + version=$(/usr/bin/rpm -q freepbx-src --qf "%{version}"|cut -d. -f1) + php="/usr/bin/php74" + if [[ $version -ge 16 ]] + then + php="/usr/bin/php80" + elif [[ $version -lt 15 ]] + then + php="/usr/bin/php56" + fi + ln -sf $php /usr/sbin/php + ln -sf $php /usr/local/sbin/php + if [ -e /usr/share/freepbx/sources/freepbx/ ]; then cd /usr/share/freepbx/sources/freepbx/ echo "Starting Asterisk..." > /root/freepbx_install.log @@ -101,7 +114,7 @@ php="/usr/bin/php56" fi ln -sf $php /usr/sbin/php - +ln -sf $php /usr/local/sbin/php # update modules /usr/sbin/e-smith/fwconsole ma upgrade framework diff -Nur --no-dereference smeserver-freepbx-14.old/root/etc/e-smith/templates/etc/odbc.ini/10freepbx smeserver-freepbx-14/root/etc/e-smith/templates/etc/odbc.ini/10freepbx --- smeserver-freepbx-14.old/root/etc/e-smith/templates/etc/odbc.ini/10freepbx 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-freepbx-14/root/etc/e-smith/templates/etc/odbc.ini/10freepbx 2022-12-15 00:06:39.445000000 -0500 @@ -0,0 +1,12 @@ +[MySQL-{ ${freepbx}{CdrDbName} || 'asteriskcdrdb' }] +Description=MySQL connection to '{ ${freepbx}{CdrDbName} || 'asteriskcdrdb' }' database +driver=MySQL +server=localhost +database={ ${freepbx}{CdrDbName} || 'asteriskcdrdb' } +Port=3306 +Socket=/var/lib/mysql/mysql.sock +option=3 +Charset=utf8 +User = { ${freepbx}{DbUser} || 'freepbxuser'} +Password = { ${freepbx}{DbPassword} || 'freepbxuser'} +