diff --git a/README.md b/README.md index e0aa865..7da2cd5 100644 --- a/README.md +++ b/README.md @@ -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 \ diff --git a/files/entrypoint.sh b/files/entrypoint.sh index 6f813ad..d85f53d 100755 --- a/files/entrypoint.sh +++ b/files/entrypoint.sh @@ -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