Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Commit

Permalink
download tarball from github (closes turnkeylinux/tracker#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
alonswartz committed Sep 15, 2013
1 parent db6ec18 commit a90f6c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 3 additions & 8 deletions conf.d/downloads
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
#!/bin/bash -ex

dl() {
[ "$FAB_HTTP_PROXY" ] && PROXY="--proxy $FAB_HTTP_PROXY"
cd $2; curl -L -f -O $PROXY $1; cd -
}
URL="https://github.com/appflower/appflower_studio_playground/archive/v1.3.0.tar.gz"

VERSION="1.3"
URL="http://cdn.appflower.com/appflower_studio_playground_vendors-${VERSION}.tgz"

dl $URL /usr/local/src
[ "$FAB_HTTP_PROXY" ] && PROXY="--proxy $FAB_HTTP_PROXY"
curl -L -f $PROXY "$URL" -o /usr/local/src/appflower.tar.gz

6 changes: 3 additions & 3 deletions conf.d/main
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ SRC=/usr/local/src
WEBROOT=/var/www/appflower

# unpack
tar -zxf $SRC/appflower_studio_playground_vendors-*.tgz -C $(dirname $WEBROOT)
mv $(dirname $WEBROOT)/appflower_studio_playground $WEBROOT
rm $SRC/appflower_studio_playground_vendors-*.tgz
tar -zxf $SRC/appflower.tar.gz -C $(dirname $WEBROOT)
mv $(dirname $WEBROOT)/appflower_* $WEBROOT
rm $SRC/appflower.tar.gz
chown -R root:root $WEBROOT

# php tweaks
Expand Down

0 comments on commit a90f6c0

Please sign in to comment.