HomeDevCentral

Fix entrypoint.sh creating one folder named {plugins,embedded-db}

Description

Fix entrypoint.sh creating one folder named {plugins,embedded-db}

Summary:
To allow spaces in variables like OPENFIRE_DATA_DIR, they have been enclosed
in quotes.

As the expression uses GNU coreutils mkdir {} syntax, put the {} in quotes
has broken the directory creation: instead to create /path/to/openfire/plugins
and /path/to/openfire/embedded-db, it created the exact quoted content.

That breaks new installations when directories don't exist.

This change fixes that regression. This is a follow-up for e76b3cfd9f47.

Test Plan:

$ export OPENFIRE_DATA_DIR=/tmp/openfire
$ mkdir -p "${OPENFIRE_DATA_DIR}"/{plugins,embedded-db}
$ ls $OPENFIRE_DATA_DIR
embedded-db  plugins

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D2372

Details

Provenance
Brandon Delcamp <delcamp.brandon@gmail.com>Authored on Tue, Oct 13, 17:22
derecksonCommitted on Wed, Oct 14, 02:23
derecksonPushed on Wed, Oct 14, 02:26
Reviewer
dereckson
Differential Revision
D2372: Fix entrypoint.sh creating one folder named {plugins,embedded-db}
Parents
rDO57e7115ab528: Upgrade JRE to OpenJDK 11 LTS
Branches
Unknown
Tags
Unknown
References
HEAD, main