Skip to content

Commit

Permalink
TheHive-Project#341 make log file available before the first start (RPM)
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om authored and jaredjennings committed May 11, 2021
1 parent f71add8 commit 8b8031b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions package/rpm/post
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mkdir -p /var/log/cortex
touch /var/log/cortex/application.log
chown -R cortex:cortex /var/log/cortex
2 changes: 1 addition & 1 deletion rpm.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rpmRequirements += "java-1.8.0-openjdk-headless"

maintainerScripts in Rpm := maintainerScriptsFromDirectory(
baseDirectory.value / "package" / "rpm",
Seq(RpmConstants.Pre, RpmConstants.Preun, RpmConstants.Postun)
Seq(RpmConstants.Pre, RpmConstants.Preun, RpmConstants.Post, RpmConstants.Postun)
)

linuxPackageSymlinks in Rpm := Nil
Expand Down

0 comments on commit 8b8031b

Please sign in to comment.