mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-02-22 04:46:21 +08:00
Make sure that NEXTCLOUD_DATADIR is not misleading
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
961f894372
commit
bf9482e560
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ fi
|
||||||
# Check for other options
|
# Check for other options
|
||||||
if [ -n "$NEXTCLOUD_DATADIR" ]; then
|
if [ -n "$NEXTCLOUD_DATADIR" ]; then
|
||||||
if [ "$NEXTCLOUD_DATADIR" = "nextcloud_aio_nextcloud_datadir" ]; then
|
if [ "$NEXTCLOUD_DATADIR" = "nextcloud_aio_nextcloud_datadir" ]; then
|
||||||
echo "NEXTCLOUD_DATADIR is set to $NEXTCLOUD_DATADIR"
|
sleep 1
|
||||||
elif ! echo "$NEXTCLOUD_DATADIR" | grep -q "^/" || [ "$NEXTCLOUD_DATADIR" = "/" ]; then
|
elif ! echo "$NEXTCLOUD_DATADIR" | grep -q "^/" || [ "$NEXTCLOUD_DATADIR" = "/" ]; then
|
||||||
echo "You've set NEXTCLOUD_DATADIR but not to an allowed value.
|
echo "You've set NEXTCLOUD_DATADIR but not to an allowed value.
|
||||||
The string must start with '/' and must not be equal to '/'. Also allowed is 'nextcloud_aio_nextcloud_datadir'.
|
The string must start with '/' and must not be equal to '/'. Also allowed is 'nextcloud_aio_nextcloud_datadir'.
|
||||||
|
|
Loading…
Reference in a new issue