Hi, On Mon, Mar 27, 2017 at 10:21 PM, Andreas Schaefer Sr. <[email protected]> wrote: > ...I was wondering what is considered the best way to > create a Service User and install it with package...
With a http://jackrabbit.apache.org/filevault/ package you mean? I don't think we have currently a better out of the box solution than what you mention. The repoinit tool [1] is meant to create service users and set permissions for them but it's not currently "wired" to package installations. The repoinit parser and JCR modules are reusable in other contexts however, so it shouldn't be too hard to call them when detecting bundles or content packages which provide repoinit statements. However the current code is written with immutable Sling instances in mind, so handling uninstalls would be more complicated. -Bertrand [1] https://sling.apache.org/documentation/bundles/repository-initialization.html
