Skip to content

Error creating New nextcloud instance #731

@epma01

Description

@epma01

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions