#
#  Licensed to the Apache Software Foundation (ASF) under one
#  or more contributor license agreements.  See the NOTICE file
#  distributed with this work for additional information
#  regarding copyright ownership.  The ASF licenses this file
#  to you under the Apache License, Version 2.0 (the
#  "License"); you may not use this file except in compliance
#  with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing,
#  software distributed under the License is distributed on an
#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
#  KIND, either express or implied.  See the License for the
#  specific language governing permissions and limitations
#  under the License.
#
[feature name=repoinit]

[configurations runModes=publish]
  org.apache.sling.jcr.repoinit.RepositoryInitializer-repoinit_runmode
    scripts="#\ general\ncreate\ path\ (sling:OrderedFolder)\ /content\nset\ ACL\ for\ everyone\n\ \ \ \ allow\ \ \ jcr:read\ on\ /content\nend\n#\ sling-mapping\ncreate\ service\ user\ sling-mapping\nset\ ACL\ for\ sling-mapping\n\ \ \ \ allow\ \ \ jcr:read\ \ \ \ on\ /\nend\n#\ sling-readall\ncreate\ service\ user\ sling-readall\nset\ ACL\ for\ sling-readall\n\ \ \ \ allow\ \ \ jcr:read\ \ \ \ on\ /\nend\n#\ sling-xss\ncreate\ service\ user\ sling-xss\ncreate\ path\ (sling:Folder)\ /libs/sling/xss\ncreate\ path\ (sling:Folder)\ /apps/sling/xss\nset\ ACL\ for\ sling-xss\n\ \ \ \ deny\ \ \ \ jcr:all\ \ \ \ \ on\ /\n\ \ \ \ allow\ \ \ jcr:read\ \ \ \ on\ /libs/sling/xss,/apps/sling/xss\nend\n#\ sling-i18n\ncreate\ service\ user\ sling-i18n\nset\ ACL\ for\ sling-i18n\n\ \ \ \ allow\ \ \ jcr:read\ \ \ \ on\ /\nend\n#\ sling-jcr-install\ncreate\ service\ user\ sling-jcr-install\n#\ used\ for\ config\ OSGi\ writeback\ncreate\ path\ (sling:Folder)\ /apps/sling/install\nset\ ACL\ for\ sling-jcr-install\n\ \ \ \ allow\ jcr:read\ on\ /\n\ \ \ \ allow\ rep:write\ on\ /apps/sling/install\nend\n"
