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
F13403107: D2372.id5967.diff
Sat, Nov 22, 03:20
F13403101: D2372.diff
Sat, Nov 22, 03:20
F13399090: D2372.id5968.diff
Sat, Nov 22, 02:39
Unknown Object (File)
Tue, Nov 18, 10:34
Unknown Object (File)
Mon, Nov 17, 08:20
Unknown Object (File)
Sun, Nov 16, 18:59
Unknown Object (File)
Sat, Nov 1, 15:25
Unknown Object (File)
Wed, Oct 29, 19:35
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 Not Applicable
Unit
Tests Not Applicable