From f873eaa52ab748bc9f1ae12d2cbf5ffc0f3f77d9 Mon Sep 17 00:00:00 2001 From: drebs Date: Sat, 19 Mar 2011 12:29:46 -0300 Subject: usando set ao inves de cut --- bootstrap.mdwn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bootstrap.mdwn b/bootstrap.mdwn index 7d92f3a..31834f0 100644 --- a/bootstrap.mdwn +++ b/bootstrap.mdwn @@ -50,6 +50,7 @@ Os comandos a seguir realizam as seguintes tarefas: puppet apply -d -v $puppet_bootstrap_dir/manifests/stage0.pp puppet apply -d -v $puppet_bootstrap_dir/manifests/host-stage1.pp + Configuração do nó administrativo --------------------------------- @@ -71,6 +72,7 @@ Os comandos a seguir realizam as seguintes tarefas: puppet apply -d -v $puppet_bootstrap_dir/manifests/stage0.pp puppet apply -d -v $puppet_bootstrap_dir/manifests/admin-stage1.pp + Criação de repositórios padrão ------------------------------ @@ -189,7 +191,7 @@ Configura repos="`lynx -dump http://git.sarava.org/?a=project_index | awk '{ print $1 }' | grep ^puppet-`" for repo in $repos; do - module="`basename $repo .git | cut -d - -f 2`" + module="`basename $repo .git | sed -e s/^puppet-//`" if [ ! -d "modules/$module" ]; then git submodule add git://git.sarava.org/puppet-$module.git modules/$module fi @@ -207,7 +209,7 @@ Configurando refer # Adicionando referencias for repo in $repos; do - module="`basename $repo .git | cut -d - -f 2`" + module="`basename $repo .git | sed -e s/^puppet-//`" if [ -d "puppet-$module" ]; then cd puppet-$module for remote in $remotes; do -- cgit v1.2.3