mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Merge pull request #5 from ehannes/TZfix
TimeZone: fix inverted check of TZ
This commit is contained in:
commit
30468cf0e6
@ -239,7 +239,7 @@ docker run \
|
||||
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
|
||||
docker run \
|
||||
|
@ -6,7 +6,7 @@ if [ -f /firstrun ]; then
|
||||
echo 'If exist, configuration and data will be reused and upgraded as needed.'
|
||||
|
||||
# Configure timezone if needed
|
||||
if [ -z "$TZ" ]; then
|
||||
if [ -n "$TZ" ]; then
|
||||
cp /usr/share/zoneinfo/$TZ /etc/localtime
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user