smart way to hanlde php.ini

This commit is contained in:
Serghey Rodin 2015-10-24 16:48:35 +03:00
commit 56012d8719
3 changed files with 14 additions and 10 deletions

View file

@ -892,8 +892,10 @@ fi
if [ -z "$ZONE" ]; then
ZONE='UTC'
fi
sed -i 's%short_open_tag = Off%short_open_tag = On%g' /etc/php.ini
sed -i "s%;date.timezone =%date.timezone = $ZONE%g" /etc/php.ini
for pconf in $(find /etc/php* -name php.ini); do
sed -i "s/;date.timezone =/date.timezone = $ZONE/g" $pconf
sed -i 's%_open_tag = Off%_open_tag = On%g' $pconf
fi
#----------------------------------------------------------#