From f9da9e670febf89b583df796693281b01de77e01 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 18 Jul 2017 11:23:26 +0200 Subject: [PATCH] Remove hardcoded php version from the code Replace it at build time so it's easy to change --- root/etc/e-smith/templates/etc/e-smith/sql/init/dl | 2 +- .../templates/etc/httpd/conf/httpd.conf/68FastCGIConfig15Dl | 2 +- root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Dl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/root/etc/e-smith/templates/etc/e-smith/sql/init/dl b/root/etc/e-smith/templates/etc/e-smith/sql/init/dl index ef01c61..784c4b0 100644 --- a/root/etc/e-smith/templates/etc/e-smith/sql/init/dl +++ b/root/etc/e-smith/templates/etc/e-smith/sql/init/dl @@ -11,7 +11,7 @@ if [ ! -d /var/lib/mysql/$db ]; then /usr/bin/mysql -e 'create database $db' /usr/bin/mysql $db < $dbstruct else - su -s /bin/bash - www -c "cd /usr/share/dl/include/scripts && /usr/bin/php56 ./dbupgrade.php" + su -s /bin/bash - www -c "cd /usr/share/dl/include/scripts && /usr/bin/php__PHP_VERSION__ ./dbupgrade.php" fi /usr/bin/mysql < - SetHandler "proxy:unix:/var/run/php-fpm/php56-dl.sock|fcgi://localhost" + SetHandler "proxy:unix:/var/run/php-fpm/php__PHP_VERSION__-dl.sock|fcgi://localhost" _EOF }