-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tyler Heucke <tyler.heucke@dell.com>
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
#!/bin/bash -e | ||
# Update package sources | ||
|
||
cat <<EOF >/etc/apt/sources.list.d/opx.list | ||
deb http://deb.openswitch.net/$DIST $OPX_RELEASE main opx opx-non-free | ||
deb http://deb.openswitch.net/contrib stable contrib | ||
EOF | ||
echo "deb http://deb.openswitch.net/$DIST $OPX_RELEASE main opx opx-non-free" \ | ||
>> /etc/apt/sources.list.d/opx.list | ||
|
||
if [[ "$DIST" == "jessie" ]]; then | ||
echo "deb http://deb.openswitch.net/contrib stable contrib" \ | ||
>> /etc/apt/sources.list.d/opx.list | ||
fi | ||
|
||
if [[ "$OPX_RELEASE" =~ ^(unstable|testing|stable)$ ]]; then | ||
echo "deb-src http://deb.openswitch.net/$DIST $OPX_RELEASE opx" \ | ||
>>/etc/apt/sources.list.d/opx.list | ||
fi | ||
|
||
apt-get update | ||
apt-get -qq update |