Skip to content

Instantly share code, notes, and snippets.

@SilverShades02
Created October 20, 2018 10:35
Show Gist options
  • Save SilverShades02/bce43b073199de57c54c7fbdafa4a1f5 to your computer and use it in GitHub Desktop.
Save SilverShades02/bce43b073199de57c54c7fbdafa4a1f5 to your computer and use it in GitHub Desktop.
make a script bash.sh containing this
#!/bin/sh -e
# Access to http://<hostname>:8080/.
cat <<EOF | sudo tee /etc/apt/sources.list.d/gerritforge.list
deb [trusted=yes] http://deb.gerritforge.com/ gerrit contrib
EOF
sudo apt update -y
sudo apt install -y openjdk-8-jdk haveged
sudo apt install -y gerrit
sudo systemctl enable gerrit
sudo reboot
save that
Then
source bash.sh
completed
now in browser
http://localhost:8080/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment