Skip to content

Commit

Permalink
DEVX-2039: added test for log dir permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
russau committed Sep 9, 2020
1 parent 5ae7167 commit 16e76ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions microservices-orders/scripts/run-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ ADDITIONAL_ARGS=${ADDITIONAL_ARGS:-""}
LOG_DIR=${LOG_DIR:="logs"}
PIDS_FILE=${PIDS_FILE:=".microservices.pids"}

# check if we can write to the log directory
if [ ! -w $LOG_DIR ]; then
echo "Unable to write to the logs dir with uid `id -u`. Logging to /tmp."
LOG_DIR=/tmp
fi

echo "Config File arg: $CONFIG_FILE_ARG"
echo "Additional Args: $ADDITIONAL_ARGS"
echo "Starting microservices from $JAR"
Expand Down

0 comments on commit 16e76ba

Please sign in to comment.