File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 9
9
* The service systemd unit now ` Wants= ` a network target to fix bootup parallelization problems.
10
10
* Recursively create the logdir for elasticsearch when creating multiple instances
11
11
* Files and directories with root ownership now specify UID/GID 0 instead to improve compatability with * BSDs.
12
+ * Elasticsearch Debian init file changed to avoid throwing errors when DATA_DIR, WORK_DIR and/or LOG_DIR were an empty variable.
12
13
13
14
#### Changes
14
15
* The ` api_ca_file ` and ` api_ca_path ` parameters have been added to support custom CA bundles for API access.
Original file line number Diff line number Diff line change @@ -149,7 +149,9 @@ case "$1" in
149
149
fi
150
150
151
151
# Prepare environment
152
- mkdir -p " $LOG_DIR " " $DATA_DIR " " $WORK_DIR " && chown " $ES_USER " :" $ES_GROUP " " $LOG_DIR " " $DATA_DIR " " $WORK_DIR "
152
+ for DIR in " $DATA_DIR " " $LOG_DIR " " $WORK_DIR " ; do
153
+ [ ! -z " $DIR " ] && mkdir -p " $DIR " && chown " $ES_USER " :" $ES_GROUP " " $DIR "
154
+ done
153
155
touch " $PID_FILE " && chown " $ES_USER " :" $ES_GROUP " " $PID_FILE "
154
156
155
157
if [ -n " $MAX_OPEN_FILES " ]; then
You can’t perform that action at this time.
0 commit comments