On Sunday 04 February 2018 12:57:10 Andres Bott wrote:
> Hello all,
> I'm currently using this code in my bundle
> http://svn.apache.org/viewvc/sling/trunk/launchpad/test-services/src/main/ja > va/org/apache/sling/launchpad/testservices/repository/SystemUsersInitializer
> .java?view=markup&pathrev=1727946 to execute a repoinit file to create
> service users.
> I wanted to know if there is a better/intended way to execute repoinit
> on bundle installation
> and since loginAdministrative is deprecated, how should we run this code
> in the future?
you can provide OSGi configurations with Repoinit statements in your bundle.
To get an idea have a look at SLING-7177, Karaf Configs and how to
install OSGi configurations from bundles.