Created
January 21, 2014 03:26
-
-
Save jeremyvisser/8533999 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e -x | |
export LC_ALL=C | |
sudo apt-get update | |
sudo apt-get -y install devscripts git dpatch | |
git clone git://github.com/dotwaffle/rancid-git | |
cd ~/rancid-git | |
dpkg-buildpackage -d -S -us -uc | |
cd .. | |
mk-build-deps rancid-git_2.3.8.dsc | |
sudo dpkg --force-depends -i rancid-git-build-deps_2.3.8_all.deb | |
sudo apt-get -y -f install | |
cd ~/rancid-git | |
dpkg-buildpackage -us -uc -rfakeroot | |
cd .. | |
sudo dpkg --force-depends -i rancid-git_2.3.8_amd64.deb | |
sudo apt-get -y -f install | |
sudo sed -i -e 's/^RCSSYS=cvs/RCSSYS=git/' /etc/rancid/rancid.conf | |
echo 'LIST_OF_GROUPS="testing"' | sudo tee -a /etc/rancid/rancid.conf | |
sudo su -s /bin/sh - rancid -c 'cd /var/lib/rancid ; /usr/lib/rancid/bin/rancid-cvs' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment