20926: Makes regex for postgres.client state more strict. 20926-installer-pg-client-version
authorLucas Di Pentima <lucas.dipentima@curii.com>
Thu, 14 Sep 2023 21:02:44 +0000 (18:02 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Thu, 14 Sep 2023 21:02:44 +0000 (18:02 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

tools/salt-install/provision.sh

index be56a9103c8f3dbf34419232d0b48c97b57b61a2..beac6b035362472248bdc2a550ee58fa7c2fa70d 100755 (executable)
@@ -820,7 +820,7 @@ else
           echo "    - nginx.passenger" >> ${STATES_TOP}
         fi
         echo "    - extra.passenger_rvm" >> ${STATES_TOP}
-        grep -q "\- postgres.client$" ${STATES_TOP} || echo "    - postgres.client" >> ${STATES_TOP}
+        grep -q "^    - postgres\\.client$" ${STATES_TOP} || echo "    - postgres.client" >> ${STATES_TOP}
 
         ### If we don't install and run LE before arvados-api-server, it fails and breaks everything
         ### after it. So we add this here as we are, after all, sharing the host for api and controller