Skip to content

Commit

Permalink
Merge pull request #177 from linuxserver/3.21-php-timezone
Browse files Browse the repository at this point in the history
Fix timezone overwriting php-local.ini contents
  • Loading branch information
thespad authored Dec 22, 2024
2 parents fdf4c99 + 7c90557 commit a037650
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions root/etc/s6-overlay/s6-rc.d/init-php/run
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ fi
# create local php.ini if it doesn't exist, set local timezone
if [[ ! -f /config/php/php-local.ini ]]; then
printf "; Edit this file to override php.ini directives\\n\\n" >/config/php/php-local.ini
# set default timezone
printf "date.timezone = %s\\n" "${TZ:-UTC}" >/config/php/php-local.ini
fi

# set default timezone
printf "date.timezone = %s\\n" "${TZ:-UTC}" >/config/php/php-local.ini

# create override for www.conf if it doesn't exist
if [[ ! -f /config/php/www2.conf ]]; then
printf "; Edit this file to override www.conf and php-fpm.conf directives and restart the container\\n\\n; Pool name\\n[www]\\n\\n" >/config/php/www2.conf
Expand Down

0 comments on commit a037650

Please sign in to comment.