aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/sz-ds/templates/opt
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-08-27 20:38:23 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-08-27 20:38:23 +0200
commit8db1109ca093e057a0ac40aa6283030d536508ee (patch)
tree1a22ba7f769602d492d44c2fe5d26e1547de5230 /ansible/roles/sz-ds/templates/opt
parent1c9619633840a0e7588a5fdf6996faddf32e8090 (diff)
downloadinfra-8db1109ca093e057a0ac40aa6283030d536508ee.tar.gz
infra-8db1109ca093e057a0ac40aa6283030d536508ee.tar.bz2
infra-8db1109ca093e057a0ac40aa6283030d536508ee.tar.xz
infra-8db1109ca093e057a0ac40aa6283030d536508ee.zip
o sz-ds: wip.
Diffstat (limited to 'ansible/roles/sz-ds/templates/opt')
-rw-r--r--ansible/roles/sz-ds/templates/opt/sz-ds/bin/flyway.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/ansible/roles/sz-ds/templates/opt/sz-ds/bin/flyway.j2 b/ansible/roles/sz-ds/templates/opt/sz-ds/bin/flyway.j2
new file mode 100644
index 0000000..8113d96
--- /dev/null
+++ b/ansible/roles/sz-ds/templates/opt/sz-ds/bin/flyway.j2
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -e
+
+v="{{ flyway_version }}"
+flyway="/opt/p2k16/flyway/flyway-$v/flyway"
+exec "$flyway" -configFile=/etc/p2k16/flyway.conf "$@"