summarylogtreecommitdiffstats
path: root/gerrit.install
blob: 1704937c611d023980784a611ea2e669e8814eba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
  cat <<EOF
:: To initialize gerrit, see:
   https://gerrit-documentation.storage.googleapis.com/Documentation/$1/index.html
:: To set up gerrit, run:
   sudo install -dm750 -o gerrit -g gerrit /var/lib/gerrit
   sudo -u gerrit gerrit init -d /var/lib/gerrit
:: If you skip manual setup, gerrit will be initialized on first start using default settings.
EOF
}

post_upgrade() {
  cat <<EOF
:: To upgrade gerrit, see:
   https://gerrit-documentation.storage.googleapis.com/Documentation/$1/index.html
:: To update gerrit, run:
   sudo -u gerrit gerrit init -d /var/lib/gerrit
   sudo -u gerrit gerrit reindex -d /var/lib/gerrit
EOF
}