File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed
Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ set_default_value() {
105105 fi
106106}
107107
108+
108109# ----------------------------------------------------------#
109110# Verifications #
110111# ----------------------------------------------------------#
@@ -853,10 +854,10 @@ ZONE=$(timedatectl 2>/dev/null|grep Timezone|awk '{print $2}')
853854if [ -z " $ZONE " ]; then
854855 ZONE=' UTC'
855856fi
856- sed -i " s/;date.timezone =/date.timezone = $ZONE /g " /etc/php5/apache2/ php.ini
857- sed -i " s/;date.timezone =/date.timezone = $ZONE /g" /etc/php5/cli/php.ini
858- sed -i ' s%_open_tag = Off%_open_tag = On%g' /etc/php5/apache2/php.ini
859- sed -i ' s%_open_tag = Off%_open_tag = On%g ' /etc/php5/cli/php.ini
857+ for pconf in $( find /etc/php* -name php .ini) ; do
858+ sed -i " s/;date.timezone =/date.timezone = $ZONE /g" $pconf
859+ sed -i ' s%_open_tag = Off%_open_tag = On%g' $pconf
860+ fi
860861
861862
862863# ----------------------------------------------------------#
Original file line number Diff line number Diff line change 892892if [ -z " $ZONE " ]; then
893893 ZONE=' UTC'
894894fi
895- sed -i ' s%short_open_tag = Off%short_open_tag = On%g' /etc/php.ini
896- sed -i " s%;date.timezone =%date.timezone = $ZONE %g" /etc/php.ini
895+ for pconf in $( find /etc/php* -name php.ini) ; do
896+ sed -i " s/;date.timezone =/date.timezone = $ZONE /g" $pconf
897+ sed -i ' s%_open_tag = Off%_open_tag = On%g' $pconf
898+ fi
897899
898900
899901# ----------------------------------------------------------#
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ set_default_value() {
9090 fi
9191}
9292
93+
9394# ----------------------------------------------------------#
9495# Verifications #
9596# ----------------------------------------------------------#
@@ -845,10 +846,10 @@ ZONE=$(timedatectl 2>/dev/null|grep Timezone|awk '{print $2}')
845846if [ -z " $ZONE " ]; then
846847 ZONE=' UTC'
847848fi
848- sed -i " s/;date.timezone =/date.timezone = $ZONE /g " /etc/php5/apache2/ php.ini
849- sed -i " s/;date.timezone =/date.timezone = $ZONE /g" /etc/php5/cli/php.ini
850- sed -i ' s%_open_tag = Off%_open_tag = On%g' /etc/php5/apache2/php.ini
851- sed -i ' s%_open_tag = Off%_open_tag = On%g ' /etc/php5/cli/php.ini
849+ for pconf in $( find /etc/php* -name php .ini) ; do
850+ sed -i " s/;date.timezone =/date.timezone = $ZONE /g" $pconf
851+ sed -i ' s%_open_tag = Off%_open_tag = On%g' $pconf
852+ fi
852853
853854
854855# ----------------------------------------------------------#
You can’t perform that action at this time.
0 commit comments