Skip to content

Commit

Permalink
#1789 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 1ae206a commit 6219522
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ case "$1" in
addUser thehive "" thehive "thehive daemon-user" "/bin/false"

# Chown definitions created by SBT Native Packager

chown thehive:thehive /var/log/thehive
touch /var/log/thehive/application.log
chown -R thehive:thehive /var/log/thehive
chown root:thehive /etc/thehive/application.conf /etc/thehive/logback.xml
chmod 0640 /etc/thehive/application.conf /etc/thehive/logback.xml
mkdir -p /opt/thehive/conf
Expand Down
1 change: 1 addition & 0 deletions package/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ RUN apt update && \
mkdir /etc/thehive && \
cp /opt/thehive/conf/logback.xml /etc/thehive/logback.xml && \
chown -R root:root /opt/thehive && \
touch /var/log/thehive/application.log && \
chown -R thehive:thehive /var/log/thehive /etc/thehive && \
chmod +x /opt/thehive/entrypoint

Expand Down

0 comments on commit 6219522

Please sign in to comment.