Created
March 22, 2015 08:12
-
-
Save albanpeignier/f5c209d379de4383a37c to your computer and use it in GitHub Desktop.
Rivendell review packages downloader
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 | |
platform=$1 | |
version=$2 | |
architecture=${3:-amd64} | |
flavor=$4 | |
if [ -z "$version" ]; then | |
echo "Usage: `basename $0` <platform> <version> [architecture] [flavor]" | |
echo | |
echo "For examples : " | |
echo " `basename $0` wheezy 2.10.3-1 i386 pr44" | |
echo " `basename $0` lucid 2.10.3-1 amd64" | |
echo " `basename $0` trusty 2.10.3-1" | |
echo | |
echo "By default, architecture will be amd64" | |
exit 1 | |
fi | |
if [ -n "$flavor" ]; then | |
release="${version}+${flavor}_${architecture}" | |
else | |
release="${version}_${architecture}" | |
fi | |
wget http://download.tryphon.eu/debian/$platform/librivendell_$release.deb \ | |
http://download.tryphon.eu/debian/$platform/rivendell_$release.deb \ | |
http://download.tryphon.eu/debian/$platform/rivendell-server_$release.deb | |
echo "To install run :" | |
echo "sudo dpkg -i librivendell_$release.deb rivendell_$release.deb rivendell-server_$release.deb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment