blob: 3aa8ae197e914a1fabdaee2d34b933fc3e95b5b9 [file] [log] [blame]
#!/bin/sh
set -e
# Allows us to bind mount arbitrary owned files
chown -R gerrit:gerrit /var/gerrit/{logs,etc,db,git,index,cache,passwd}/
# Drop privileges as we set `USER root` only to change file permissions
exec setpriv --reuid=gerrit --regid=gerrit --init-groups --inh-caps=-all /unprivileged.sh "$@"