From 5d869d3e47dfec866a51cb08aa129dda7e844a97 Mon Sep 17 00:00:00 2001 From: bradymiller Date: Sun, 15 May 2016 00:53:15 -0700 Subject: [PATCH] another ubuntu-debian package fix --- contrib/util/ubuntu_package_scripts/production/postinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/util/ubuntu_package_scripts/production/postinst b/contrib/util/ubuntu_package_scripts/production/postinst index cf1fee7c7..c1bfa3e5f 100644 --- a/contrib/util/ubuntu_package_scripts/production/postinst +++ b/contrib/util/ubuntu_package_scripts/production/postinst @@ -65,6 +65,7 @@ case "$1" in INSTTEMP=$OPENEMR/contrib/util/installScripts/InstallerAutoTemp.php #php and apache files PHP=/etc/php5/apache2/php.ini + PHP_ALTERNATE=/etc/php/7.0/apache2/php.ini #web user and group WEB_GROUP=www-data WEB_USER=www-data @@ -299,6 +300,11 @@ case "$1" in #This Section edits the php.ini file to accomodate the proper functioning of OpenEMR using php log_only "Configuring PHP for OpenEMR" + #check if PHP7 config file exists; if it does then use it. + if [ -f $PHP_ALTERNATE ]; then + PHP=$PHP_ALTERNATE + fi + #check to ensure the php configuration file exists if [ -f $PHP ]; then # First, collect php variables -- 2.11.4.GIT