diff --git a/package/debian/postinst b/package/debian/postinst index dd4e2d9870..a1bae2b3c1 100755 --- a/package/debian/postinst +++ b/package/debian/postinst @@ -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 diff --git a/package/rpm/post b/package/rpm/post index 46e824ed8c..13f6ff462d 100644 --- a/package/rpm/post +++ b/package/rpm/post @@ -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 \ No newline at end of file + fi + +mkdir -p /var/log/thehive +touch /var/log/thehive/application.log +chown -R thehive:thehive /var/log/thehive \ No newline at end of file