aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/sz-ds/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/sz-ds/templates')
-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 "$@"