Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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