mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-21 04:49:18 +00:00
nextcloud: persistent timezone variable
This commit is contained in:
parent
28b622a160
commit
a05104eb94
@ -5,6 +5,8 @@ sed -i -e "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /etc/nginx/nginx.conf /etc/ph
|
|||||||
-e "s/<OPCACHE_MEM_SIZE>/$OPCACHE_MEM_SIZE/g" /etc/php7/conf.d/00_opcache.ini \
|
-e "s/<OPCACHE_MEM_SIZE>/$OPCACHE_MEM_SIZE/g" /etc/php7/conf.d/00_opcache.ini \
|
||||||
-e "s/<CRON_PERIOD>/$CRON_PERIOD/g" /etc/s6.d/cron/run
|
-e "s/<CRON_PERIOD>/$CRON_PERIOD/g" /etc/s6.d/cron/run
|
||||||
|
|
||||||
|
echo ${TZ:-UTC} >/etc/timezone
|
||||||
|
|
||||||
# Put the configuration and apps into volumes
|
# Put the configuration and apps into volumes
|
||||||
ln -sf /config/config.php /nextcloud/config/config.php &>/dev/null
|
ln -sf /config/config.php /nextcloud/config/config.php &>/dev/null
|
||||||
ln -sf /apps2 /nextcloud &>/dev/null
|
ln -sf /apps2 /nextcloud &>/dev/null
|
||||||
|
@ -79,7 +79,6 @@ echo "Automatic configuration finished."
|
|||||||
# users within the proper timeframe
|
# users within the proper timeframe
|
||||||
# * We need to set the logdateformat to something that will work correctly with fail2ban
|
# * We need to set the logdateformat to something that will work correctly with fail2ban
|
||||||
# Use PHP to read the settings file, modify it, and write out the new settings array.
|
# Use PHP to read the settings file, modify it, and write out the new settings array.
|
||||||
echo ${TZ:-UTC} >/etc/timezone
|
|
||||||
|
|
||||||
TIMEZONE=$(cat /etc/timezone)
|
TIMEZONE=$(cat /etc/timezone)
|
||||||
CONFIG_TEMP=$(/bin/mktemp)
|
CONFIG_TEMP=$(/bin/mktemp)
|
||||||
|
@ -5,6 +5,8 @@ sed -i -e "s/<UPLOAD_MAX_SIZE>/$UPLOAD_MAX_SIZE/g" /etc/nginx/nginx.conf /etc/ph
|
|||||||
-e "s/<OPCACHE_MEM_SIZE>/$OPCACHE_MEM_SIZE/g" /etc/php7/conf.d/00_opcache.ini \
|
-e "s/<OPCACHE_MEM_SIZE>/$OPCACHE_MEM_SIZE/g" /etc/php7/conf.d/00_opcache.ini \
|
||||||
-e "s/<CRON_PERIOD>/$CRON_PERIOD/g" /etc/s6.d/cron/run
|
-e "s/<CRON_PERIOD>/$CRON_PERIOD/g" /etc/s6.d/cron/run
|
||||||
|
|
||||||
|
echo ${TZ:-UTC} >/etc/timezone
|
||||||
|
|
||||||
# Put the configuration and apps into volumes
|
# Put the configuration and apps into volumes
|
||||||
ln -sf /config/config.php /nextcloud/config/config.php &>/dev/null
|
ln -sf /config/config.php /nextcloud/config/config.php &>/dev/null
|
||||||
ln -sf /apps2 /nextcloud &>/dev/null
|
ln -sf /apps2 /nextcloud &>/dev/null
|
||||||
|
@ -79,7 +79,6 @@ echo "Automatic configuration finished."
|
|||||||
# users within the proper timeframe
|
# users within the proper timeframe
|
||||||
# * We need to set the logdateformat to something that will work correctly with fail2ban
|
# * We need to set the logdateformat to something that will work correctly with fail2ban
|
||||||
# Use PHP to read the settings file, modify it, and write out the new settings array.
|
# Use PHP to read the settings file, modify it, and write out the new settings array.
|
||||||
echo ${TZ:-UTC} >/etc/timezone
|
|
||||||
|
|
||||||
TIMEZONE=$(cat /etc/timezone)
|
TIMEZONE=$(cat /etc/timezone)
|
||||||
CONFIG_TEMP=$(/bin/mktemp)
|
CONFIG_TEMP=$(/bin/mktemp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user