diff options
author | Simon Lukasik <slukasik@redhat.com> | 2010-06-05 18:58:54 +0200 |
---|---|---|
committer | Simon Lukasik <slukasik@redhat.com> | 2010-06-05 18:58:54 +0200 |
commit | 09897032a12d19b1d649632c29043a9d805d1f61 (patch) | |
tree | e2865e7d8f73b3c17c0216afdb53afa6187fbb09 | |
download | misc-master.tar.gz misc-master.tar.xz misc-master.zip |
-rwxr-xr-x | deb_rhn_client_install.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/deb_rhn_client_install.sh b/deb_rhn_client_install.sh new file mode 100755 index 0000000..35e061a --- /dev/null +++ b/deb_rhn_client_install.sh @@ -0,0 +1,39 @@ +#!/bin/bash -x +# +# Summary: Install client packages for spacewalk on debian. Don't do this at home! +# Author: Simon Lukasik <isimluk@fedoraproject.org> +# License: WTFPLv2 +# Date: 2010-06-05 +# + + +## Configuration, comment out apropriate lines +arch=i386 +#arch=amd64 +repo=http://download.opensuse.org/repositories/home:/xsuchy:/debian-spacewalk/Debian_5.0/ +#repo=http://download.opensuse.org/repositories/home:/xsuchy:/debian-spacewalk/xUbuntu_9.10/ + + +## Download packages +mkdir -p temp && cd $_ +for file in `cat ../package.list`; do + wget $repo$file || (echo "FAIL"; exit) +done +cd - + + +## Install sw-client packages +for package in temp/*all.deb; do + dpkg -i $package +done +for package in temp/*$arch.deb; do + dpkg -i $package +done + + +## Install dependencies +apt-get -f -y install + +cd .. +echo "PASS." + |