diff --git a/scripts/_common.sh b/scripts/_common.sh index 27d2f84..15f28c2 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -246,7 +246,7 @@ myynh_execute_psql_as_root() { database="--dbname=$database" fi - sudo --login --user=postgres PGUSER=postgres PGPASSWORD="$(cat $PSQL_ROOT_PWD_FILE)" \ + LC_ALL=C sudo --login --user=postgres PGUSER=postgres PGPASSWORD="$(cat $PSQL_ROOT_PWD_FILE)" \ psql --cluster="$(postgresql_version)/main" "$database" --command="$sql" }