Skip to content

Commit

Permalink
Use default timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Jan 17, 2023
1 parent 7530cf6 commit 22cc406
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ echo "date.timezone = ${TZ}" >> /etc/php.ini
sed -i "s/^\(memory_limit =\).*/\1 ${PHP_MEMORY_LIMIT}/" /etc/php.ini
sed -i "s/^\(max_execution_time =\).*/\1 ${PHP_MAX_EXECUTION_TIME}/" /etc/php.ini

rm /etc/localtime
ln -s /usr/share/zoneinfo/${TZ} /etc/localtime
if [ ! -z "${TZ}" ]; then
rm /etc/localtime
ln -s /usr/share/zoneinfo/${TZ} /etc/localtime
else
echo "Using default timezone sinze TZ is unset."
fi

# remove php-snmp if asked, required for snmpv3 to function correctly. Disabled by default
if [ ${PHP_SNMP} = 0 ]; then
Expand Down

0 comments on commit 22cc406

Please sign in to comment.