[fix] STRETCH compatibility : php7.0 ini files are in /etc/php/7.0/, not in /etc/php7.0/ as it was for /etc/php5/
This commit is contained in:
parent
2c1cd988d5
commit
61b1cee66b
|
@ -279,9 +279,15 @@ rm -f $SED_SCRIPT
|
||||||
# Ad-hoc fixes
|
# Ad-hoc fixes
|
||||||
#
|
#
|
||||||
|
|
||||||
php="`ls /usr/lib/apache*/*/*php*.so | sed -e 's/^.*libphp\(.*\)\.so$/php\1/' | tail -1`"
|
php="`ls /usr/lib/apache*/*/*php*.so | sed -e 's/^.*libphp\(.*\)\.so$/\1/' | tail -1`"
|
||||||
ln -fs /etc/alternc/alternc.ini /etc/$php/apache2/conf.d/alternc.ini || true
|
if [ "$php" = "7.0" ]
|
||||||
ln -fs /etc/alternc/alternc.ini /etc/$php/cli/conf.d/alternc.ini || true
|
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
|
if [ -x /usr/sbin/apache2 ]; then
|
||||||
# hook
|
# hook
|
||||||
|
|
Loading…
Reference in New Issue