control-repo/scripts/config_version.sh
Nick Walker f5cb1fa757 Update config_version to use a script that does not require git
The config_version now uses a script that will do one of two
things:

1. call config_version.rb which uses rugged to find the information
about the latest commit if PE is on version 2015.2 or newer

2. make a call to git if the PE version is less than 2015.2
2015-08-03 17:05:06 -07:00

8 lines
224 B
Bash

#!/bin/bash
if [ -e /opt/puppetlabs/server/pe_version ]
then
/opt/puppetlabs/puppet/bin/ruby $1/$2/scripts/config_version.rb $1 $2
else
/usr/bin/git --git-dir $codedir/environments/$environment/.git rev-parse HEAD
fi