You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
linuxPackageMappings <++= (normalizedName in Universal, mappings in Universal, defaultLinuxInstallLocation, appUser in Linux, appGroup in Linux) map {
74
+
linuxPackageMappings <++= (normalizedName in Universal, mappings in Universal, defaultLinuxInstallLocation, daemonUser in Linux, daemonGroup in Linux) map {
75
75
(pkg, mappings, installLocation, user, group) =>
76
-
// TODO - More windows filters...
77
-
defisWindowsFile(f: (File, String)):Boolean=
78
-
f._2 endsWith ".bat"
79
-
80
-
mapGenericMappingsToLinux(mappings filterNot isWindowsFile, user, group) { name =>
81
-
installLocation +"/"+ pkg +"/"+ name
82
-
}
76
+
// TODO - More windows filters...
77
+
defisWindowsFile(f: (File, String)):Boolean=
78
+
f._2 endsWith ".bat"
79
+
80
+
mapGenericMappingsToLinux(mappings filterNot isWindowsFile, user, group) { name =>
81
+
installLocation +"/"+ pkg +"/"+ name
82
+
}
83
83
},
84
84
// Now we generate symlinks.
85
85
linuxPackageSymlinks <++= (normalizedName in Universal, mappings in Universal, defaultLinuxInstallLocation) map { (pkg, mappings, installLocation) =>
Copy file name to clipboardexpand all lines: src/main/scala/com/typesafe/sbt/packager/linux/Keys.scala
+3-4
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,13 @@ trait Keys {
11
11
valpackageSummary=SettingKey[String]("package-summary", "Summary of the contents of a linux package.")
12
12
valpackageDescription=SettingKey[String]("package-description", "The description of the package. Used when searching.")
13
13
valmaintainer=SettingKey[String]("maintainer", "The name/email address of a maintainer for the native package.")
14
-
valappUser=SettingKey[String]("app-user", "The owner of the files in the package")
15
-
valappGroup=SettingKey[String]("app-group", "The group owner of the files in the package")
16
14
valdaemonUser=SettingKey[String]("daemon-user", "User to start application daemon")
15
+
valdaemonGroup=SettingKey[String]("daemon-group", "Group to start application daemon")
17
16
valserverLoading=SettingKey[ServerLoader]("server-loader", "Loading system to be used for application start script")
18
17
vallinuxPackageMappings=TaskKey[Seq[LinuxPackageMapping]]("linux-package-mappings", "File to install location mappings including owner and privileges.")
19
18
vallinuxPackageSymlinks=TaskKey[Seq[LinuxSymlink]]("linux-package-symlinks", "Symlinks we should produce in the underlying package.")
20
-
valgenerateManPages=TaskKey[Unit]("generate-man-pages", "Shows all the man files in the current project")
21
-
19
+
valgenerateManPages=TaskKey[Unit]("generate-man-pages", "Shows all the man files in the current project")
20
+
22
21
vallinuxStartScriptTemplate=TaskKey[URL]("linuxStartScriptTemplate", "The location of the template start script file we use for debian (upstart or init.d")
23
22
vallinuxEtcDefaultTemplate=TaskKey[URL]("linuxEtcDefaultTemplate", "The location of the /etc/default/<pkg> template script.")
0 commit comments