mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
smart way to hanlde php.ini
This commit is contained in:
parent
80bf6422c4
commit
56012d8719
3 changed files with 14 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue