From 40668f71d9f321e201c1c885bf20824336191735 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 13 Jul 2017 18:26:59 +0200 Subject: [PATCH] Move php-fpm tempalte to the correct location --- .../etc/{opt/remi/php71 => }/php-fpm.d/www.conf/20tt-rss | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) rename root/etc/e-smith/templates/etc/{opt/remi/php71 => }/php-fpm.d/www.conf/20tt-rss (90%) diff --git a/root/etc/e-smith/templates/etc/opt/remi/php71/php-fpm.d/www.conf/20tt-rss b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/20tt-rss similarity index 90% rename from root/etc/e-smith/templates/etc/opt/remi/php71/php-fpm.d/www.conf/20tt-rss rename to root/etc/e-smith/templates/etc/php-fpm.d/www.conf/20tt-rss index 8dd6ddc..16b0cf0 100644 --- a/root/etc/e-smith/templates/etc/opt/remi/php71/php-fpm.d/www.conf/20tt-rss +++ b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/20tt-rss @@ -1,6 +1,7 @@ { -if ((${'tt-rss'}{status} || 'disabled') eq 'enabled){ - $OUT .=<<_EOF; +if ($PHP_VERSION eq '71'){ + if ((${'tt-rss'}{status} || 'disabled') eq 'enabled'){ + $OUT .=<<_EOF; [php71-tt-rss] user = www @@ -40,8 +41,9 @@ php_admin_flag[allow_url_include] = off php_admin_value[session.save_handler] = files _EOF -} -else{ - $OUT .= '; Tiny Tiny RSS is disabled'; + } + else{ + $OUT .= '; Tiny Tiny RSS is disabled'; + } } }