diff options
author | Michael Scherer <misc@mageia.org> | 2011-02-11 17:50:01 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-02-11 17:50:01 +0000 |
commit | e849bcd1b0729e432625d6f1d35758dfc20c8c02 (patch) | |
tree | e95512f167f51f1c94a316580509d0179222500b /modules/git/files | |
parent | b3aa611aea913cacae53aa547beac0954bd45308 (diff) | |
download | puppet-e849bcd1b0729e432625d6f1d35758dfc20c8c02.tar puppet-e849bcd1b0729e432625d6f1d35758dfc20c8c02.tar.gz puppet-e849bcd1b0729e432625d6f1d35758dfc20c8c02.tar.bz2 puppet-e849bcd1b0729e432625d6f1d35758dfc20c8c02.tar.xz puppet-e849bcd1b0729e432625d6f1d35758dfc20c8c02.zip |
use source instead of templates ( likely lighter, no need to parse the file for no reason )
Diffstat (limited to 'modules/git/files')
-rw-r--r-- | modules/git/files/apply_git_puppet_config.sh | 7 | ||||
-rw-r--r-- | modules/git/files/create_git_repo.sh | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/modules/git/files/apply_git_puppet_config.sh b/modules/git/files/apply_git_puppet_config.sh new file mode 100644 index 00000000..29ede998 --- /dev/null +++ b/modules/git/files/apply_git_puppet_config.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +while read line +do + # --local is a option for the newer git + git config --add $line +done < config.puppet diff --git a/modules/git/files/create_git_repo.sh b/modules/git/files/create_git_repo.sh new file mode 100644 index 00000000..1104edbe --- /dev/null +++ b/modules/git/files/create_git_repo.sh @@ -0,0 +1,11 @@ +#!/bin/bash +umask 0002 +# http://eagleas.livejournal.com/18907.html +name="$1" +mkdir -p $name +cd $name +git --bare init --shared=group +chmod g+ws branches info objects refs +( cd objects; chmod g+ws * ) +git config receive.denyNonFastForwards true + |