-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Caused by Compatibility with docker secrets (Fix #560) #729
+ echo 'New nextcloud instance'
New nextcloud instance
+ file_env NEXTCLOUD_ADMIN_PASSWORD
+ local 'var=NEXTCLOUD_ADMIN_PASSWORD'
+ local 'fileVar=NEXTCLOUD_ADMIN_PASSWORD_FILE'
+ local 'def='
./entrypoint.sh: line 171: syntax error: bad substitution
Introduced code is using bash indirect expansion but entrypoint.sh is not using bash and it is not supported
file_env() {
local var="$1"
local fileVar="${var}_FILE"
local def="${2:-}"
>>> if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then <<< this line is causing the issue
echo >&2 "error: both $var and $fileVar are set (but are exclusive)"
exit 1
fi
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels