diff options
author | Michael Gebetsroither <michael@mgeb.org> | 2012-02-11 12:03:28 +0100 |
---|---|---|
committer | Michael Gebetsroither <michael@mgeb.org> | 2012-02-11 12:03:28 +0100 |
commit | 4bc73d2ebb7ecdc422075918062428c302836bd8 (patch) | |
tree | f12a4f2f8fff49d7088a1e66f5e0760f5dc123e1 | |
parent | f0417353f0e3196e67b5a38eafe175fe92962bb8 (diff) |
add handler for proto gitolite in bootstrap
-rwxr-xr-x | examples/bootstrap | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/examples/bootstrap b/examples/bootstrap index 596e919..6b77bf1 100755 --- a/examples/bootstrap +++ b/examples/bootstrap @@ -23,6 +23,12 @@ if [[ ${#} -ge 4 ]] { PKG_HOST=${3} PKG_PATH=${4} PKG_DIR=${~${5-${default_path}}} + PKGLIST_PATH="" + if [[ $PKG_PROTO == "gitolite" ]]; then + pkglist_type="$PKG_PROTO" + PKG_PROTO="ssh" + PKGLIST_PATH="\${PKG_DIR}/caretaker/examples/pkglist-${pkglist_type}" + fi } else { cat <<- meow Usage: ./bootstrap PKG_PROTO PKG_USER PKG_HOST PKG_PATH [PKG_DIR] @@ -78,8 +84,14 @@ cat > ${XDG_CONFIG_HOME}/caretaker/caretaker.conf <<- flurbl PKG_USER='${PKG_USER}' PKG_HOST='${PKG_HOST}' PKG_PATH='${PKG_PATH}' - } flurbl +if [[ $PKGLIST_PATH != "" ]]; then +cat >> ${XDG_CONFIG_HOME}/caretaker/caretaker.conf <<- flurbl +PKGLIST_LOCAL=1 +PKGLIST_PATH="${PKGLIST_PATH}" +flurbl +fi +echo '}' >>${XDG_CONFIG_HOME}/caretaker/caretaker.conf echo 'Installing caretaker package' rehash |