blob: e5e3d3f2be5f466fc9999dcc962ac63e2610e0e1 [file] [log] [blame]
#!/bin/ash
GERRIT_DAEMON_OPTS="--console-log --enable-httpd"
IS_REPLICA=$(git config -f /var/gerrit/etc/gerrit.config --get container.replica)
if [[ "$IS_REPLICA" == "true" ]]; then
GERRIT_DAEMON_OPTS="$GERRIT_DAEMON_OPTS --replica"
fi
JAVA_OPTIONS=$(git config --file /var/gerrit/etc/gerrit.config --get-all container.javaOptions)
java ${JAVA_OPTIONS} -jar /var/gerrit/bin/gerrit.war daemon \
-d /var/gerrit \
$GERRIT_DAEMON_OPTS