Skip to content

Instantly share code, notes, and snippets.

@gboddin
Last active August 29, 2015 14:15
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gboddin/d3fa7e386868a0862b81 to your computer and use it in GitHub Desktop.
Save gboddin/d3fa7e386868a0862b81 to your computer and use it in GitHub Desktop.
Origin: Vagrant mirror repo
Label: Same
Codename: deb
Architectures: i386 amd64
Components: main
Description: Apt repository for project vagrant
#SignWith: 5269DE62
verbose
basedir /var/www/vagrant
ask-passphrase
#!/bin/bash
# for vagrant repo
# deb http://oraw.waro.be/vagrant deb main
# before using this script, you need to create /var/www/vagrant/conf directory and put the above distributions + options in it
[ -d /usr/src/vagrant ]||mkdir -p /usr/src/vagrant
cd /usr/src/vagrant
rm *deb
package32=$(wget -qO - https://dl.bintray.com/mitchellh/vagrant/|grep i686|grep uris|grep deb|tail -1|cut -d\' -f4)
package64=$(wget -qO - https://dl.bintray.com/mitchellh/vagrant/|grep x86_64|grep uris|grep deb|tail -1|cut -d\' -f4)
wget -c "$package32"
wget -c "$package64"
[ -d /var/www/vagrant ]||mkdir -p /var/www/vagrant
cd /var/www/vagrant
reprepro includedeb deb /usr/src/vagrant/*deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment