Fix timezone
This commit is contained in:
parent
6f91dbf64c
commit
62de4c614c
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 21137-RC5 (2019/12/07)
|
||||||
|
|
||||||
|
* Fix timezone
|
||||||
|
|
||||||
## 21137-RC4 (2019/11/28)
|
## 21137-RC4 (2019/11/28)
|
||||||
|
|
||||||
* Proxy type defaults to `https`
|
* Proxy type defaults to `https`
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
TZ=${TZ:-UTC}
|
||||||
|
|
||||||
JLS_PATH="/opt/jetbrains-license-server"
|
JLS_PATH="/opt/jetbrains-license-server"
|
||||||
JLS_LISTEN_ADDRESS="0.0.0.0"
|
JLS_LISTEN_ADDRESS="0.0.0.0"
|
||||||
JLS_PORT=8000
|
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
|
sed -i -e "s/^jls:\([^:]*\):[0-9]*:\([0-9]*\)/jls:\1:${PUID}:\2/" /etc/passwd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Timezone
|
||||||
|
echo "Setting timezone to ${TZ}..."
|
||||||
|
ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime
|
||||||
|
echo ${TZ} > /etc/timezone
|
||||||
|
|
||||||
# Init
|
# Init
|
||||||
echo "Initializing files and folders..."
|
echo "Initializing files and folders..."
|
||||||
su-exec jls:jls touch "/data/access-config.json"
|
su-exec jls:jls touch "/data/access-config.json"
|
||||||
|
Loading…
Reference in New Issue
Block a user