Skip to content

Commit

Permalink
TheHive-Project#341 make log file available before the first start
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard authored and jaredjennings committed May 11, 2021
1 parent d1088fe commit ce2b238
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 ce2b238

Please sign in to comment.