nextcloud: persistent timezone variable

This commit is contained in:
Wonderfall 2016-10-12 13:35:42 +02:00
parent 28b622a160
commit a05104eb94
4 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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)