Fix timezone

This commit is contained in:
CrazyMax 2019-12-07 16:09:30 +01:00
parent 6f91dbf64c
commit 62de4c614c
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## 21137-RC5 (2019/12/07)
* Fix timezone
## 21137-RC4 (2019/11/28)
* Proxy type defaults to `https`

View File

@ -1,5 +1,7 @@
#!/bin/sh
TZ=${TZ:-UTC}
JLS_PATH="/opt/jetbrains-license-server"
JLS_LISTEN_ADDRESS="0.0.0.0"
JLS_PORT=8000
@ -17,6 +19,11 @@ if [ -n "${PUID}" ] && [ "${PUID}" != "$(id -u jls)" ]; then
sed -i -e "s/^jls:\([^:]*\):[0-9]*:\([0-9]*\)/jls:\1:${PUID}:\2/" /etc/passwd
fi
# Timezone
echo "Setting timezone to ${TZ}..."
ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime
echo ${TZ} > /etc/timezone
# Init
echo "Initializing files and folders..."
su-exec jls:jls touch "/data/access-config.json"