2 # This script install all 3rd party dependencies for ubuntu
3 # from the medibuntu repository.
51 # Are we been run on ubuntu feiste ?
52 if ! test -f /etc
/debian_version
; then
53 echo "ERROR: no /etc/debian_version file found"
54 echo "ERROR: this is a non debian based system."
55 echo "ERROR: this script is meant to be run on ubuntu feisty 7.04"
59 version
=`cat /etc/debian_version`
60 if ! test "${version}" = "4.0"; then
61 echo "ERROR: wrong version number ${version}"
62 echo "ERROR: this script is meant to be run on ubuntu feisty 7.04"
66 if ! test "`whoami`" = "root"; then
67 echo "ERROR: run this script as root user (eg: using sudo $*)"
71 # Test if medibuntu repos is installed.
72 if ! test -f /etc
/apt
/sources.list.d
/medibuntu.list
; then
73 echo "Installing medibuntu repository for dependencies"
74 wget http
://www.medibuntu.org
/sources.list.d
/feisty.list
-O /etc
/apt
/sources.list.d
/medibuntu.list
75 wget
-q http
://packages.medibuntu.org
/medibuntu-key.gpg
-O- | sudo apt-key add
- && sudo apt-get update
79 apt-get
install ${LIST}