Last active
August 29, 2015 14:15
-
-
Save gboddin/d3fa7e386868a0862b81 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
Origin: Vagrant mirror repo | |
Label: Same | |
Codename: deb | |
Architectures: i386 amd64 | |
Components: main | |
Description: Apt repository for project vagrant | |
#SignWith: 5269DE62 |
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
verbose | |
basedir /var/www/vagrant | |
ask-passphrase |
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 | |
# 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