diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2014-08-23 17:31:41 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2014-08-23 17:31:41 +0200 |
commit | 5b1cc7e49adeb7c6060f04fda0a667e3e17809ab (patch) | |
tree | 0d686367329a97992f9a80d9a960c75890d1e68a /files/bin/install-release | |
download | fiken-ansible-5b1cc7e49adeb7c6060f04fda0a667e3e17809ab.tar.gz fiken-ansible-5b1cc7e49adeb7c6060f04fda0a667e3e17809ab.tar.bz2 fiken-ansible-5b1cc7e49adeb7c6060f04fda0a667e3e17809ab.tar.xz fiken-ansible-5b1cc7e49adeb7c6060f04fda0a667e3e17809ab.zip |
wip
Diffstat (limited to 'files/bin/install-release')
-rw-r--r-- | files/bin/install-release | 13 |
1 files changed, 13 insertions, 0 deletions
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." |