Skip to content

Commit

Permalink
Fix timezone overwriting php-local.ini contents
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Dec 22, 2024
1 parent fdf4c99 commit 7c90557
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 7c90557

Please sign in to comment.