Entrypoint: Fix typos
parent
469857a31a
commit
acf7c2cdf2
|
|
@ -25,18 +25,19 @@ fi
|
||||||
chown -R "$PUID:$PGID" /app
|
chown -R "$PUID:$PGID" /app
|
||||||
|
|
||||||
# Get directory of log and mark file to create base folder if it doesnt exist and change permissions
|
# 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 LOG_DIR is set, create the directory
|
||||||
if [ -n "$LOG_DIR" ]; then
|
if [ -n "$LOG_DIR" ]; then
|
||||||
mkdir -p "$LOG_DIR"
|
mkdir -p "$LOG_DIR"
|
||||||
chown -R "$PUID:$PGID" "$LOG_DIR"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MARK_DIR=$(dirname "$MARKFILE")
|
MARK_DIR=$(dirname "$MARK_FILE")
|
||||||
if [ -n "$MARK_DIR" ]; then
|
if [ -n "$MARK_DIR" ]; then
|
||||||
mkdir -p "$MARK_DIR"
|
mkdir -p "$MARK_DIR"
|
||||||
chown -R "$PUID:$PGID" "$MARK_DIR"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chown -R "$PUID:$PGID" "$LOG_DIR"
|
||||||
|
chown -R "$PUID:$PGID" "$MARK_DIR"
|
||||||
|
|
||||||
# Run the application as the created user
|
# Run the application as the created user
|
||||||
exec gosu "$PUID:$PGID" "$@"
|
exec gosu "$PUID:$PGID" "$@"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue