mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-12 21:10:42 +02:00
update setclocale.sh
This commit is contained in:
parent
747f1de6eb
commit
8ab29cc2b0
@ -14,7 +14,7 @@ PG_DUMP="docker exec $POSTGRES_CONTAINER_ID pg_dump"
|
|||||||
PG_RESTORE="docker exec $POSTGRES_CONTAINER_ID pg_restore"
|
PG_RESTORE="docker exec $POSTGRES_CONTAINER_ID pg_restore"
|
||||||
PSQL="docker exec $POSTGRES_CONTAINER_ID psql -h localhost -p 5432 -U postgres"
|
PSQL="docker exec $POSTGRES_CONTAINER_ID psql -h localhost -p 5432 -U postgres"
|
||||||
|
|
||||||
if [[ "$($PSQL -h localhost -p 5432 -U postgres -c "\l $DATABASE_NAME")" != *"en_US.utf8"* ]]; then
|
if [[ "$($PSQL -c "\l $DATABASE_NAME")" != *"en_US.utf8"* ]]; then
|
||||||
echo "Database $DATABASE_NAME already uses locale C"
|
echo "Database $DATABASE_NAME already uses locale C"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user