summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2020-03-27 09:06:29 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2020-03-27 09:06:29 (GMT)
commitc752d85dae0d24181da99846f034376752d165a4 (patch)
tree54784d5efa6a6739cd33ba7a19de1574b023b257
parent76b96d5ac3cb3971d12c11ee563053efda73ba20 (diff)
downloadpublik-client-scripts-c752d85dae0d24181da99846f034376752d165a4.zip
publik-client-scripts-c752d85dae0d24181da99846f034376752d165a4.tar.gz
publik-client-scripts-c752d85dae0d24181da99846f034376752d165a4.tar.bz2
montpellier/pg_copy_bijoe_schemas: do not use sudo, script is already launched by postgres user (#41032)v1.14
-rwxr-xr-xclients/montpellier/pg_copy_bijoe_schemas.task2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/montpellier/pg_copy_bijoe_schemas.task b/clients/montpellier/pg_copy_bijoe_schemas.task
index e8d74e5..1c1ae20 100755
--- a/clients/montpellier/pg_copy_bijoe_schemas.task
+++ b/clients/montpellier/pg_copy_bijoe_schemas.task
@@ -1,4 +1,4 @@
#! /bin/sh
test $(echo 'database.node1.test.saas.entrouvert.org database.node2.test.saas.entrouvert.org database.node1.prod.saas.entrouvert.org database.node2.prod.saas.entrouvert.org' | xargs -n1 echo | grep -w `hostname -f`) || exit
-test "$(sudo -u postgres psql -tAc 'SELECT pg_is_in_recovery();')" == 'f' && /usr/lib/publik/clients/montpellier/pg_copy_bijoe_schemas
+test "$(psql -tAc 'SELECT pg_is_in_recovery();')" == 'f' && /usr/lib/publik/clients/montpellier/pg_copy_bijoe_schemas