mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
add check for timezone
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
1771a72c0e
commit
35c08c0381
1 changed files with 12 additions and 0 deletions
|
|
@ -253,6 +253,18 @@ if [ "$?" = 6 ]; then
|
|||
exit 1
|
||||
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!"
|
||||
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!"
|
||||
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!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Add important folders
|
||||
mkdir -p /mnt/docker-aio-config/data/
|
||||
mkdir -p /mnt/docker-aio-config/session/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue