Force a non-lazy run if global.ini has changed
[puppet-git.git] / ppg-init-goldsvr
blobe8c7f6d33f4e38d22fcce01aca2c38d2c85efe77
1 #!/bin/bash
3 if [[ -n "${PPG_DEBUG}" ]]; then
4 set -x
5 fi
7 if [[ -z "$1" ]]; then
8 echo >&2 "ERROR: needs base path parameter"
9 exit 1
12 base_repo=$1
14 mkdir -p $1
15 echo "Preparing the repository for your Puppet configurations"
16 git --git-dir=${base_repo}/puppet.git init --bare
18 echo "Preparing the directory for reports"
19 mkdir ${base_repo}/reports
21 echo
22 echo "Make reports.git writable by the user/group that clients"
23 echo "use to connect."