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
F11081797: D2372.id5967.diff
Wed, Aug 13, 15:23
F11075113: D2372.id5968.diff
Wed, Aug 13, 01:24
F11074202: D2372.id5967.diff
Tue, Aug 12, 23:15
F11074199: D2372.id5968.diff
Tue, Aug 12, 23:13
Unknown Object (File)
Mon, Aug 11, 04:18
Unknown Object (File)
Sun, Aug 10, 13:54
Unknown Object (File)
Fri, Aug 1, 20:00
Unknown Object (File)
Tue, Jul 29, 10:38
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