Don't try to match the \ from \connect.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
Randy Barlow 2017-02-23 19:50:48 +00:00
parent e99a5bfe15
commit 8523b4cb2a

View file

@ -44,7 +44,7 @@
- command: unxz /var/tmp/bodhi2.dump.xz
creates=/var/tmp/bodhi2.dump
- command: sed -i "s/CREATE DATABASE bodhi2.*/SET bdr.permit_ddl_locking = true;/" /var/tmp/bodhi2.dump
- command: sed -i "s/\connect bodhi2/\connect bodhi2\\\nSET bdr.permit_ddl_locking = true;/" /var/tmp/bodhi2.dump
- command: sed -i "s/connect bodhi2/connect bodhi2\\\nSET bdr.permit_ddl_locking = true;/" /var/tmp/bodhi2.dump
- shell: >
psql bodhi2 <<< "
BEGIN;