mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-15 18:20:20 +00:00
Merge pull request #2206 from nextcloud/enh/2195/adjust-datadir-wording
adjust wording of regex for NEXTCLOUD_DATADIR
This commit is contained in:
commit
aba40c4633
1 changed files with 2 additions and 2 deletions
|
|
@ -95,10 +95,10 @@ 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 '/'.
|
The string must start with '/' and must not be equal to '/'. Also allowed is 'nextcloud_aio_nextcloud_datadir'.
|
||||||
It is set to '$NEXTCLOUD_DATADIR'."
|
It is set to '$NEXTCLOUD_DATADIR'."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue