Leon4gr45 commited on
Commit
4a4a159
·
verified ·
1 Parent(s): 285b1dd

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -2
entrypoint.sh CHANGED
@@ -28,7 +28,7 @@ fi
28
 
29
  mkdir -p "$PERSISTENT_ROOT/postgres" "$PERSISTENT_ROOT/redis"
30
  chmod -R 777 "$PERSISTENT_ROOT"
31
- chown -R postgres:postgres "$PERSISTENT_ROOT/postgres"
32
 
33
  SECRETS_FILE="$PERSISTENT_ROOT/internal-secrets.env"
34
  if [ ! -f "$SECRETS_FILE" ]; then
@@ -62,7 +62,7 @@ echo "=================================================="
62
  # 2. PostgreSQL Setup
63
  PGDATA="$PERSISTENT_ROOT/postgres"
64
  export PGDATA
65
- chown -R postgres:postgres "$PGDATA"
66
 
67
  if [ ! -s "$PGDATA/PG_VERSION" ]; then
68
  su - postgres -c "/usr/lib/postgresql/15/bin/initdb -D '$PGDATA'"
 
28
 
29
  mkdir -p "$PERSISTENT_ROOT/postgres" "$PERSISTENT_ROOT/redis"
30
  chmod -R 777 "$PERSISTENT_ROOT"
31
+ chown -R postgres "$PERSISTENT_ROOT/postgres" 2>/dev/null || true
32
 
33
  SECRETS_FILE="$PERSISTENT_ROOT/internal-secrets.env"
34
  if [ ! -f "$SECRETS_FILE" ]; then
 
62
  # 2. PostgreSQL Setup
63
  PGDATA="$PERSISTENT_ROOT/postgres"
64
  export PGDATA
65
+ chown -R postgres "$PGDATA" 2>/dev/null || true
66
 
67
  if [ ! -s "$PGDATA/PG_VERSION" ]; then
68
  su - postgres -c "/usr/lib/postgresql/15/bin/initdb -D '$PGDATA'"