Browse Source

fix: [base-0k] cloning should use environment variables.

postgres
Valentin Lab 10 years ago
parent
commit
1c3caebc7a
  1. 10
      precise/base-0k/hooks/install

10
precise/base-0k/hooks/install

@ -2,6 +2,14 @@
set -eux # -x for verbose logging to juju debug-log
## 0k git remote path
GIT_0K_BASE=${GIT_0K_BASE:-"git.0k.io:/var/git"}
## 0k git remote options
GIT_0K_CLONE_OPTIONS=${GIT_0K_CLONE_OPTIONS:-""}
apt-get -y install bash-completion wget bzip2 git-core less language-pack-en python-software-properties tmux sudo git
@ -176,6 +184,6 @@ EOF
(
mkdir -p /opt/apps &&
cd /opt/apps &&
git clone git.0k.io:/var/git/0k/git-sub &&
git clone $GIT_0K_CLONE_OPTIONS "$GIT_0K_BASE"/0k/git-sub &&
ln -sf /opt/apps/git-sub/bin/git-sub /usr/lib/git-core/
)
Loading…
Cancel
Save