Skip to content

Commit

Permalink
Entrypoint: Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi311 committed Aug 28, 2024
1 parent 469857a commit acf7c2c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@ fi
chown -R "$PUID:$PGID" /app

# Get directory of log and mark file to create base folder if it doesnt exist and change permissions
LOG_DIR=$(dirname "$LOGFILE")
LOG_DIR=$(dirname "$LOG_FILE")
# If LOG_DIR is set, create the directory
if [ -n "$LOG_DIR" ]; then
mkdir -p "$LOG_DIR"
chown -R "$PUID:$PGID" "$LOG_DIR"
fi

MARK_DIR=$(dirname "$MARKFILE")
MARK_DIR=$(dirname "$MARK_FILE")
if [ -n "$MARK_DIR" ]; then
mkdir -p "$MARK_DIR"
chown -R "$PUID:$PGID" "$MARK_DIR"
mkdir -p "$MARK_DIR"
fi

chown -R "$PUID:$PGID" "$LOG_DIR"
chown -R "$PUID:$PGID" "$MARK_DIR"

# Run the application as the created user
exec gosu "$PUID:$PGID" "$@"

0 comments on commit acf7c2c

Please sign in to comment.