Page MenuHomeDevCentral

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

Authored by dereckson on Oct 14 2020, 02:21.
Tags
None
Referenced Files
F10011239: D2372.id5968.diff
Tue, Jun 17, 15:23
F9994444: D2372.diff
Tue, Jun 17, 09:55
Unknown Object (File)
Fri, Jun 13, 00:21
Unknown Object (File)
Wed, Jun 11, 15:11
Unknown Object (File)
Wed, Jun 11, 09:23
Unknown Object (File)
Wed, Jun 11, 08:18
Unknown Object (File)
Thu, May 22, 09:47
Unknown Object (File)
Thu, May 22, 09:44
Subscribers
None

Details

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

Diff Detail

Repository
rDO Docker image for Openfire
Lint
Lint Passed
Unit
No Test Coverage
Branch
fix-mkdir
Build Status
Buildable 3680
Build 3930: arc lint + arc unit