Merge pull request #18503 from dakrone/remove-mkdir

Don't mkdir directly in deb init script
This commit is contained in:
Lee Hinman 2016-05-20 23:04:33 -06:00
commit ca033b42a9
1 changed files with 0 additions and 9 deletions

View File

@ -116,15 +116,6 @@ case "$1" in
exit 0
fi
# Prepare environment
# Check $DATA_DIR for a comma
if [ "${DATA_DIR#*,}" != "$DATA_DIR" ]; then
# $DATA_DIR contains a comma, so we should not mkdir it
mkdir -p "$LOG_DIR" && chown "$ES_USER":"$ES_GROUP" "$LOG_DIR"
else
mkdir -p "$LOG_DIR" "$DATA_DIR" && chown "$ES_USER":"$ES_GROUP" "$LOG_DIR" "$DATA_DIR"
fi
# Ensure that the PID_DIR exists (it is cleaned at OS startup time)
if [ -n "$PID_DIR" ] && [ ! -e "$PID_DIR" ]; then
mkdir -p "$PID_DIR" && chown "$ES_USER":"$ES_GROUP" "$PID_DIR"