Skip to content

Commit 41f9858

Browse files
djzagerdymurray
authored andcommitted
Bug 1584104 - No TTY (#62)
1 parent 173191f commit 41f9858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- when: apb_action == 'update'
99
block:
1010
- name: Backup database
11-
shell: kubectl exec -it -n {{ namespace }} {{ app_pod_name }} -- /bin/bash -c "mkdir -p /tmp/db && pg_dumpall -f /tmp/db/dump"
11+
shell: kubectl exec -i -n {{ namespace }} {{ app_pod_name }} -- /bin/bash -c "mkdir -p /tmp/db && pg_dumpall -f /tmp/db/dump"
1212

1313
- name: Rsync to APB
1414
shell: oc rsync -n {{ namespace }} {{ app_pod_name }}:/tmp/db /tmp
@@ -56,7 +56,7 @@
5656
shell: oc rsync -n {{ namespace }} /tmp/db {{ app_pod_name }}:/tmp
5757

5858
- name: Restore database
59-
shell: oc exec -it -n {{ namespace }} {{ app_pod_name }} -- /bin/bash -c "psql -f /tmp/db/dump"
59+
shell: kubectl exec -i -n {{ namespace }} {{ app_pod_name }} -- /bin/bash -c "psql -f /tmp/db/dump"
6060

6161
- name: encode bind credentials
6262
asb_encode_binding:

0 commit comments

Comments
 (0)