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 a03ac68 commit cee4e3d
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 @@ -86,7 +86,8 @@ case "$1" in
fi

# 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 /etc/thehive/secret.conf
chmod 0640 /etc/thehive/application.conf /etc/thehive/logback.xml /etc/thehive/secret.conf
test -x /bin/systemctl && /bin/systemctl daemon-reload || /bin/true
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 cee4e3d

Please sign in to comment.