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
Need the ability to specify which user and group the files get when they are installed. Currently we hard code the file user and group to root:root in GenericPackageSettings.scala
If you need to change what the "generic" settings are doing, you can run a transformation on them, like so:
linuxPackageMappings := {
val old = linuxPackageMappings.value
for {
mappings <- old
if needsMyUser(mappings)
} yield {
val meta = mappings.fileData.withUser("myUser").withGroup("myGroup")
mappings.copy(fileData = meta)
}
}
Another thing I'd recommend here is to only add the user bit for RPMs (debians are more finicky here, and we haven't figured out the best way to do UIDs):
linuxPackageMappings in Rpm := {
val old = linuxPackageMappings.value
....
}
I'm going to leave this open to provide some configuration to the "automatic" rpm settings for this kind of functoinality. Let me know if the mechanism above doesn't work for you.
Need the ability to specify which user and group the files get when they are installed. Currently we hard code the file user and group to root:root in GenericPackageSettings.scala
Seq(
packageMappingWithRename((binaries ++ directories):*) withUser "root" withGroup "root" withPerms "0755",
packageMappingWithRename(compressedManPages:).gzipped withUser "root" withGroup "root" withPerms "0644",
packageMappingWithRename(configFiles:) withConfig() withUser "root" withGroup "root" withPerms "0644",
packageMappingWithRename(remaining:*) withUser "root" withGroup "root" withPerms "0644"
)
The text was updated successfully, but these errors were encountered: