Skip to content

Commit

Permalink
Merge pull request #59 from ldvm/f-debpkg
Browse files Browse the repository at this point in the history
PR: debpkg
  • Loading branch information
Jirka Helmich committed Aug 31, 2015
2 parents f989b2a + fc4778a commit fefb31a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/controllers/api/VisualizationApiController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ class VisualizationApiController(implicit inj: Injector) extends ApiController w
}
}

}
}
16 changes: 15 additions & 1 deletion src/build.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
import play.PlayScala
import com.typesafe.sbt.SbtNativePackager._
import NativePackagerKeys._
import com.typesafe.sbt.packager.archetypes.ServerLoader.SystemV

name := """payola-viz"""
name := "LDVMi"

version := "1.0-SNAPSHOT"

/** Debian packaging **/
maintainer in Linux := "Jiri Helmich <[email protected]>"

packageSummary in Linux := "LDVMi - Linked Data visualizations"

packageDescription := "LDVMi - Linked Data visualizations"

serverLoading in Debian := SystemV

debianPackageDependencies ++= Seq("openjdk-7-jre-headless")

lazy val root = (project in file(".")).enablePlugins(PlayScala)

scalaVersion := "2.11.4"
Expand Down
6 changes: 6 additions & 0 deletions src/src/debian/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mkdir /var/lib/ldvmi
chown ldvmi:ldvmi /var/lib/ldvmi
usermod -d /var/lib/ldvmi ldvmi
usermod -s /bin/sh ldvmi
chown ldvmi:ldvmi /usr/share/ldvmi/
/etc/init.d/ldvmi start
1 change: 1 addition & 0 deletions src/src/templates/etc-default
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-DapplyEvolutions.default=true

0 comments on commit fefb31a

Please sign in to comment.