From 9a6f7420554d0cd1116b230fd48052613f6d5885 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Thu, 9 Apr 2009 11:49:01 +0100 Subject: [PATCH] Allow proxy to be specified (Kumar Gala). --- febootstrap.pod | 6 ++++++ febootstrap.sh | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/febootstrap.pod b/febootstrap.pod index a8f73ff..26035b1 100644 --- a/febootstrap.pod +++ b/febootstrap.pod @@ -64,6 +64,12 @@ RPMs and metadata. However if you give the C<--no-clean> option, then the yum repository is left. This is useful if you want to run further yum commands inside the filesystem by hand. +=item B<-p "proxyurl"> + +=item B<--proxy="proxyurl"> + +URL to the proxy server that yum should use. + =back =head1 REPOSITORIES diff --git a/febootstrap.sh b/febootstrap.sh index 5386b2c..c7eeca4 100755 --- a/febootstrap.sh +++ b/febootstrap.sh @@ -19,8 +19,8 @@ # Written by Richard W.M. Jones TEMP=`getopt \ - -o g:i: \ - --long groupinstall:,group-install:,help,install:,noclean,no-clean \ + -o g:i:p: \ + --long groupinstall:,group-install:,help,install:,noclean,no-clean,proxy: \ -n febootstrap -- "$@"` if [ $? != 0 ]; then echo "febootstrap: problem parsing the command line arguments" @@ -45,6 +45,9 @@ while true; do -i|--install) packages[i++]="$2" shift 2;; + -p|--proxy) + proxy="proxy=$2" + shift 2;; --groupinstall|--group-install) packages[i++]="@$2" shift 2;; @@ -96,6 +99,7 @@ name=febootstrap $repo $arch failovermethod=priority enabled=1 gpgcheck=0 +$proxy __EOF__ # "Mirror" parameter is a bit misnamed, but it means a local mirror, -- 1.8.3.1