blob: 3aa8ae197e914a1fabdaee2d34b933fc3e95b5b9 [file] [log] [blame]
Nico Hubera1a296f2023-06-25 10:07:07 +00001#!/bin/sh
2
3set -e
4
5# Allows us to bind mount arbitrary owned files
Nico Huberb650ed42023-07-20 17:08:54 +00006chown -R gerrit:gerrit /var/gerrit/{logs,etc,db,git,index,cache,passwd}/
Nico Hubera1a296f2023-06-25 10:07:07 +00007
8# Drop privileges as we set `USER root` only to change file permissions
9exec setpriv --reuid=gerrit --regid=gerrit --init-groups --inh-caps=-all /unprivileged.sh "$@"