andrewrreed HF staff commited on
Commit
2229a8b
·
1 Parent(s): faa4fb6

remove node db creation

Browse files
Files changed (1) hide show
  1. docker-entrypoint-wrapper.sh +2 -11
docker-entrypoint-wrapper.sh CHANGED
@@ -21,20 +21,11 @@ fi
21
 
22
  # Start PostgreSQL with the persistent directories
23
  echo "Starting PostgreSQL..."
24
- # # First, check if there's a postmaster.pid file and remove it if the process isn't running
25
- # if [ -f "/data/postgresql/data/postmaster.pid" ]; then
26
- # pid=$(cat /data/postgresql/data/postmaster.pid | head -1)
27
- # if ! kill -0 "$pid" 2>/dev/null; then
28
- # echo "Removing stale PID file..."
29
- # rm /data/postgresql/data/postmaster.pid
30
- # fi
31
- # fi
32
-
33
  pg_ctl -D /data/postgresql/data -o "-c listen_addresses='*' -c unix_socket_directories='/data/postgresql/run'" start
34
 
35
  # Create the 'node' database if it doesn't exist
36
- echo "Creating 'node' database if it doesn't exist..."
37
- createdb -h localhost node || true
38
 
39
  # Wait for PostgreSQL to be ready
40
  echo "Waiting for PostgreSQL to be ready..."
 
21
 
22
  # Start PostgreSQL with the persistent directories
23
  echo "Starting PostgreSQL..."
 
 
 
 
 
 
 
 
 
24
  pg_ctl -D /data/postgresql/data -o "-c listen_addresses='*' -c unix_socket_directories='/data/postgresql/run'" start
25
 
26
  # Create the 'node' database if it doesn't exist
27
+ # echo "Creating 'node' database if it doesn't exist..."
28
+ # createdb -h localhost node || true
29
 
30
  # Wait for PostgreSQL to be ready
31
  echo "Waiting for PostgreSQL to be ready..."