f5cb1fa757
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
8 lines
224 B
Bash
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
|