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