Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from hardyoyo/DS-1663-add-documentation-and-ex…
…amples Ds 1663 add documentation and examples
- Loading branch information
Showing
6 changed files
with
154 additions
and
18 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
# apt-spy-2-bootstrap.sh | ||
# Uses the Ruby gem apt-spy2 to ensure the apt sources.list file is configured appropriately for this location, and that it selects mirrors that are currently functional | ||
|
||
# figure out the two-letter country code for the current locale, based on IP address | ||
|
||
export CURRENTIP=`curl -s http://ipecho.net/plain` | ||
|
||
#TODO verify that you actually have an IP address there, and not some evil text | ||
|
||
export COUNTRY=`geoiplookup $CURRENTIP | awk -F:\ '{print $2}' | sed 's/,.*//'` | ||
|
||
#TODO verify that country code, and use US if it doesn't look reasonable | ||
|
||
if [ "$(gem search -i apt-spy2)" = "false" ]; then | ||
gem install apt-spy2 | ||
apt-spy2 fix --launchpad --commit --country=$COUNTRY ; true | ||
else | ||
apt-spy2 fix --launchpad --commit --country=$COUNTRY ; true | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
!common.yaml | ||
*.yaml | ||
local-bootstrap.sh | ||
dotfiles |
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
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