Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add ability to download tarballs from private github repos

  • Loading branch information...
commit acee26c5d8cab16107b308efb8495d7d20e06b4a 1 parent 6e325a9
@tuxofil tuxofil authored
Showing with 7 additions and 1 deletion.
  1. +1 −0  Makefile
  2. +2 −0  http-auth.conf
  3. +4 −1 yabs-worker.sh
View
1  Makefile
@@ -3,6 +3,7 @@
install: sudoers
install --mode=755 --directory /etc/yabs
install --mode=644 repo.list /etc/yabs
+ install --mode=440 http-auth.conf /etc/yabs
install --mode=755 yabs-worker.sh /usr/sbin/yabs-worker
install --mode=755 yabs.sh /usr/bin/yabs
install --mode=440 sudoers /etc/sudoers.d/yabs
View
2  http-auth.conf
@@ -0,0 +1,2 @@
+HTTP_USERNAME=strikead-marvin
+HTTP_PASSWORD=
View
5 yabs-worker.sh
@@ -84,7 +84,10 @@ PKGTAR=`echo "$SPECINFO" | \
## ---------------------------------------------
## download tarball...
-wget --output-document="$SOURCESDIR"/"$PKGTAR" "$PKGURL"
+[ -f /etc/yabs/http-auth.conf ] && \
+ . /etc/yabs/http-auth.conf
+curl --location --user "$HTTP_USERNAME":"$HTTP_PASSWORD" \
+ "$PKGURL" --output "$SOURCESDIR"/"$PKGTAR"
tar tf "$SOURCESDIR"/"$PKGTAR"
## ---------------------------------------------

0 comments on commit acee26c

Please sign in to comment.
Something went wrong with that request. Please try again.