From 61b1cee66bb9ad512727cd1b1c478e52de30d3c4 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sun, 8 Oct 2017 14:05:12 +0200 Subject: [PATCH] =?UTF-8?q?[fix]=C2=A0STRETCH=20compatibility=20:=20php7.0?= =?UTF-8?q?=20ini=20files=20are=20in=20/etc/php/7.0/,=20not=20in=20/etc/ph?= =?UTF-8?q?p7.0/=20as=20it=20was=20for=20/etc/php5/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jessie/alternc.install | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/jessie/alternc.install b/jessie/alternc.install index 13eb33e3..fc32e953 100644 --- a/jessie/alternc.install +++ b/jessie/alternc.install @@ -279,9 +279,15 @@ rm -f $SED_SCRIPT # Ad-hoc fixes # -php="`ls /usr/lib/apache*/*/*php*.so | sed -e 's/^.*libphp\(.*\)\.so$/php\1/' | tail -1`" -ln -fs /etc/alternc/alternc.ini /etc/$php/apache2/conf.d/alternc.ini || true -ln -fs /etc/alternc/alternc.ini /etc/$php/cli/conf.d/alternc.ini || true +php="`ls /usr/lib/apache*/*/*php*.so | sed -e 's/^.*libphp\(.*\)\.so$/\1/' | tail -1`" +if [ "$php" = "7.0" ] +then + ln -fs /etc/alternc/alternc.ini /etc/php/$php/apache2/conf.d/alternc.ini || true + ln -fs /etc/alternc/alternc.ini /etc/php/$php/cli/conf.d/alternc.ini || true +else + ln -fs /etc/alternc/alternc.ini /etc/php$php/apache2/conf.d/alternc.ini || true + ln -fs /etc/alternc/alternc.ini /etcphp/$php/cli/conf.d/alternc.ini || true +fi if [ -x /usr/sbin/apache2 ]; then # hook