Skip to content

Commit

Permalink
#341 make log file available before the first start
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Feb 19, 2021
1 parent 6773849 commit 2def70c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ case "$1" in

# Chown definitions created by SBT Native Packager

chown cortex:cortex /var/log/cortex
touch /var/log/cortex/application.log
chown -R cortex:cortex /var/log/cortex
chown root:cortex /etc/cortex/application.conf /etc/cortex/logback.xml
chmod 0640 /etc/cortex/application.conf /etc/cortex/logback.xml

Expand Down
1 change: 1 addition & 0 deletions package/docker/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ fi

echo config file is:
cat "$CONFIG_FILE"
touch /var/log/cortex/application.log
chown -R "$DAEMON_USER" /var/log/cortex
chown -R "$DAEMON_USER" /etc/cortex
chown -R "$DAEMON_USER" "$CONFIG_FILE"
Expand Down

0 comments on commit 2def70c

Please sign in to comment.