Skip to content

Commit

Permalink
Do not create empty dir
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Zeithaml <[email protected]>
  • Loading branch information
Martin-Zeithaml committed Aug 23, 2024
1 parent 3ef0e05 commit 2cd75d0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@ if [[ "${OSNAME}" == "OS/390" ]]; then
ZWES_LOG_FILE=$ZWES_LOG_DIR
elif [ ! -d "$ZWES_LOG_DIR" ]
then
echo "Will make log directory $ZWES_LOG_DIR"
mkdir -p $ZWES_LOG_DIR
if [ $? -ne 0 ]
then
echo "Cannot make log directory. Logging disabled."
ZWES_LOG_FILE=/dev/null
if [ -n "${ZWES_LOG_DIR}" ]; then
echo "Will make log directory $ZWES_LOG_DIR"
mkdir -p $ZWES_LOG_DIR
if [ $? -ne 0 ]; then
echo "Cannot make log directory. Logging disabled."
ZWES_LOG_FILE=/dev/null
fi
fi
fi
ZWES_ROTATE_LOGS=0
Expand Down

0 comments on commit 2cd75d0

Please sign in to comment.