mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-09 23:17:46 +08:00
add hint how the correct timezone can be set
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
35c08c0381
commit
7f37fd7060
1 changed files with 3 additions and 0 deletions
|
@ -256,12 +256,15 @@ fi
|
|||
# Check that no changes have been made to timezone settings since AIO only supports running in UTC timezone
|
||||
if [ -n "$TZ" ]; then
|
||||
print_red "The environmental variable TZ has been set which is not supported by AIO since it only supports running in the default UTC timezone!"
|
||||
echo "The correct timezone can be set in the AIO interface later on!"
|
||||
exit 1
|
||||
elif mountpoint -q /etc/localtime; then
|
||||
print_red "/etc/localtime has been mounted into the container which is not allowed because AIO only supports running in the default UTC timezone!"
|
||||
echo "The correct timezone can be set in the AIO interface later on!"
|
||||
exit 1
|
||||
elif mountpoint -q /etc/timezone; then
|
||||
print_red "/etc/timezone has been mounted into the container which is not allowed because AIO only supports running in the default UTC timezone!"
|
||||
echo "The correct timezone can be set in the AIO interface later on!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue