fix #49. fix the git sha replacement.
parent
e665aac606
commit
d1c72f42f0
|
@ -109,7 +109,7 @@ function build_packages {
|
|||
function setup_version {
|
||||
echo "Changing version from dev to $influxdb_version"
|
||||
sha1=`git rev-list --max-count=1 HEAD`
|
||||
sed -i.bak -e "s/version = \"dev\"/version = \"$influxdb_version\"/" -e "s/gitSha = \"\"/gitSha = \"$sha1\"/" src/server/server.go
|
||||
sed -i.bak -e "s/version = \"dev\"/version = \"$influxdb_version\"/" -e "s/gitSha\s*=\s*\"HEAD\"/gitSha = \"$sha1\"/" src/server/server.go
|
||||
sed -i.bak -e "s/REPLACE_VERSION/$influxdb_version/" scripts/post_install.sh
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue