mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 22:46:55 +00:00
Merge pull request #3298 from nextcloud/enh/noid/fix-timezone-exit
This commit is contained in:
commit
a0dddcc1b3
1 changed files with 11 additions and 8 deletions
|
|
@ -253,17 +253,20 @@ if [ "$?" = 6 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check that no changes have been made to timezone settings since AIO only supports running in UTC timezone
|
# Check that no changes have been made to timezone settings since AIO only supports running in Etc/UTC timezone
|
||||||
if [ -n "$TZ" ]; then
|
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!"
|
print_red "The environmental variable TZ has been set which is not supported by AIO since it only supports running in the default Etc/UTC timezone!"
|
||||||
|
echo "The correct timezone can be set in the AIO interface later on!"
|
||||||
|
# Disable exit since it seems to be by default set on unraid and we dont want to break these instances
|
||||||
|
# exit 1
|
||||||
|
fi
|
||||||
|
if 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 Etc/UTC timezone!"
|
||||||
echo "The correct timezone can be set in the AIO interface later on!"
|
echo "The correct timezone can be set in the AIO interface later on!"
|
||||||
exit 1
|
exit 1
|
||||||
elif mountpoint -q /etc/localtime; then
|
fi
|
||||||
print_red "/etc/localtime has been mounted into the container which is not allowed because AIO only supports running in the default UTC timezone!"
|
if mountpoint -q /etc/timezone; then
|
||||||
echo "The correct timezone can be set in the AIO interface later on!"
|
print_red "/etc/timezone has been mounted into the container which is not allowed because AIO only supports running in the default Etc/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!"
|
|
||||||
echo "The correct timezone can be set in the AIO interface later on!"
|
echo "The correct timezone can be set in the AIO interface later on!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue