From cdcb4175e4dce20a61b06909266c16728fdd4c90 Mon Sep 17 00:00:00 2001 From: Shinya Kato Date: Thu, 5 Sep 2024 17:19:17 +0900 Subject: [PATCH] Use $(whoami) instead of $USER --- sql/backup_from_standby.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql/backup_from_standby.sh b/sql/backup_from_standby.sh index 235679e..c3b1a87 100644 --- a/sql/backup_from_standby.sh +++ b/sql/backup_from_standby.sh @@ -91,9 +91,9 @@ EOF local replication postgres trust host replication postgres 127.0.0.1/32 trust host replication postgres ::1/128 trust -local replication $USER trust -host replication $USER 127.0.0.1/32 trust -host replication $USER ::1/128 trust +local replication $(whoami) trust +host replication $(whoami) 127.0.0.1/32 trust +host replication $(whoami) ::1/128 trust EOF