From 5b1cc7e49adeb7c6060f04fda0a667e3e17809ab Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 23 Aug 2014 17:31:41 +0200 Subject: wip --- files/bin/install-release | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 files/bin/install-release (limited to 'files/bin/install-release') diff --git a/files/bin/install-release b/files/bin/install-release new file mode 100644 index 0000000..4b94bc0 --- /dev/null +++ b/files/bin/install-release @@ -0,0 +1,13 @@ +#!/bin/bash +set -e +set -x + +env=`app conf get env.FIKEN_ENVIRONMENT` +props="current/etc/$env/environment.properties" +password=`sed -n 's,^database.password=\(.*\),\1,p' $props` + +app conf set app.version $1 +app upgrade +sed 's,^\(database.password\)=.*,\1=$password,' $props > x +mv x $props +echo "Type app restart when ready to start new version." -- cgit v1.2.3