Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
#!/usr/bin/env bash
set -e

apt-get update
apt-get -y install nginx
CACHEDIR=$2
NGINX_COMMON=nginx-common_1.2.1-2.2ubuntu0.2_all.deb
NGINX_FULL=nginx-full_1.2.1-2.2ubuntu0.2_amd64.deb
NGINX=nginx_1.2.1-2.2ubuntu0.2_all.deb

if [[ ! -f "$CACHEDIR/$NGINX" ]]; then
apt-get update
apt-get download nginx nginx-common nginx-full
mv nginx* $CACHEDIR/
fi

dpkg -i $CACHEDIR/$NGINX_COMMON
dpkg -i $CACHEDIR/$NGINX_FULL
dpkg -i $CACHEDIR/$NGINX

BINDIR=$(dirname "$0")

Expand Down