Remove all pg12 traces so pg_wrapper doesn't get confused
authorRafael dos Santos Silva <xfalcox@gmail.com>
Wed, 13 May 2020 00:18:55 +0000 (21:18 -0300)
committerRafael dos Santos Silva <xfalcox@gmail.com>
Wed, 13 May 2020 00:18:55 +0000 (21:18 -0300)
templates/postgres.10.template.yml

index 63f06bdef75947cef709ea011d10215333730f27..fb5b2528171c5084d4e2cda6726fc71090f9f0cf 100644 (file)
@@ -19,7 +19,7 @@ hooks:
        to: sv start postgres || exit 1
 
 run:
-  - exec: apt-get remove -y postgresql-12 postgresql-client-12 postgresql-contrib-12
+  - exec: DEBIAN_FRONTEND=noninteractive apt-get purge -y postgresql-12 postgresql-client-12 postgresql-contrib-12
   - exec: apt-get update && apt-get install -y postgresql-10 postgresql-client-10 postgresql-contrib-10
   - exec: mkdir -p /shared/postgres_run
   - exec: chown postgres:postgres /shared/postgres_run