Merge pull request #5 from ehannes/TZfix

TimeZone: fix inverted check of TZ
This commit is contained in:
Adrien Ferrand 2017-09-02 20:56:58 +02:00 committed by GitHub
commit 30468cf0e6
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ docker run \
adferrand/backuppc adferrand/backuppc
``` ```
Alternatively, you can sync the container timezone to its host by mounting the host file `/etc/localtime` to the container path `/etc/localtime`. Alternatively, depending on the host OS, you can sync the container timezone to its host by mounting the host file `/etc/localtime` to the container path `/etc/localtime`.
```bash ```bash
docker run \ docker run \

View File

@ -6,7 +6,7 @@ if [ -f /firstrun ]; then
echo 'If exist, configuration and data will be reused and upgraded as needed.' echo 'If exist, configuration and data will be reused and upgraded as needed.'
# Configure timezone if needed # Configure timezone if needed
if [ -z "$TZ" ]; then if [ -n "$TZ" ]; then
cp /usr/share/zoneinfo/$TZ /etc/localtime cp /usr/share/zoneinfo/$TZ /etc/localtime
fi fi