aboutsummaryrefslogtreecommitdiff
path: root/files/bin/install-release
diff options
context:
space:
mode:
Diffstat (limited to 'files/bin/install-release')
-rw-r--r--files/bin/install-release13
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."