From 3a26620b2b30beb1d672c37e7ff08a4347046b88 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Tue, 20 Oct 2020 01:07:23 +0200 Subject: [PATCH] debian packages: use same system user Default database is H2 which requires that both processes can access the file. --- build.sbt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index d2ece72f..333b7121 100644 --- a/build.sbt +++ b/build.sbt @@ -96,14 +96,13 @@ val webjarSettings = Seq( def debianSettings(cfgFile: String) = Seq( maintainer := "Eike Kettner ", - packageSummary := description.value, - packageDescription := description.value, mappings in Universal += { val conf = (Compile / resourceDirectory).value / "reference.conf" if (!conf.exists) sys.error(s"File $conf not found") conf -> s"conf/$cfgFile.conf" }, + daemonUser := "docspell", bashScriptExtraDefines += s"""addJava "-Dconfig.file=$${app_home}/../conf/$cfgFile.conf"""" ) @@ -418,6 +417,9 @@ val joex = project .settings(buildInfoSettings) .settings( name := "docspell-joex", + description := "The joex component (job executor) for docspell which executes long-running tasks.", + packageSummary := "Docspell Joex", + packageDescription := description.value, libraryDependencies ++= Dependencies.fs2 ++ Dependencies.http4sServer ++ @@ -450,6 +452,9 @@ val restserver = project .settings(buildInfoSettings) .settings( name := "docspell-restserver", + description := "Docspell server providing the user interface and a REST Api.", + packageSummary := "Docspell Rest server", + packageDescription := description.value, libraryDependencies ++= Dependencies.http4sServer ++ Dependencies.http4sCirce ++