Skip to content

Commit 22e8366

Browse files
authored
feat: Added support for tmp directory creation (#202)
1 parent 5718a4c commit 22e8366

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
### Security - In case of vulnerabilities.
1919
-->
2020

21+
## [v2.9.3] - 2023-06-23
22+
23+
### Added
24+
25+
- Added support for creating the temporary directory defined by `TMPDIR` if it doesn't exist.
26+
2127
## [v2.9.2] - 2023-06-22
2228

2329
### Changed

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ if [ -r $DEFAULT ]; then
99
set +o allexport
1010
fi
1111

12+
if [ -n "${TMPDIR}" ] && [ ! -d "${TMPDIR}" ]; then
13+
mkdir -p -m 3770 "${TMPDIR}"
14+
fi
15+
1216
# If the user has supplied only arguments append them to `fluentd` command
1317
if [ "${1#-}" != "$1" ]; then
1418
set -- fluentd "$@"

0 commit comments

Comments
 (0)