summarylogtreecommitdiffstats
path: root/gerrit.sh
blob: 3f8195300a8073d4961c6b1120a24b5fae05d4ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -eu

if [ "${USER-}" != gerrit ]; then
  echo >&2 "please run $0 as user gerrit"
  exit 1
fi

GERRIT_SITE=/var/lib/gerrit
export GERRIT_SITE

exec /usr/bin/java -jar /usr/share/java/gerrit/gerrit.war "$@"