Skip to content

Commit

Permalink
#1789 make sure application.log is created after the installation pro…
Browse files Browse the repository at this point in the history
…cess
  • Loading branch information
jeromeleonard committed Mar 9, 2021
1 parent d64676d commit ec1c646
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions package/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ case "$1" in
fi

# Chown definitions created by SBT Native Packager
mkdir -p /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
Expand Down
6 changes: 5 additions & 1 deletion package/rpm/post
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ chown root:thehive /etc/thehive/application.conf /etc/thehive/logback.xml /etc/t
chmod 0640 /etc/thehive/application.conf /etc/thehive/logback.xml /etc/thehive/secret.conf
if test -x /bin/systemctl; then
/bin/systemctl daemon-reload || /bin/true
fi
fi

mkdir -p /var/log/thehive
touch /var/log/thehive/application.log
chown -R thehive:thehive /var/log/thehive

0 comments on commit ec1c646

Please sign in to comment.