fix: Remove explicit stats directory for embedded Postgres
This commit is contained in:
parent
bb95452018
commit
b414d0746b
|
|
@ -389,10 +389,10 @@ init_postgres() {
|
|||
chown -R postgres:postgres "$POSTGRES_DB_PATH"
|
||||
else
|
||||
echo "Initializing local postgresql database"
|
||||
mkdir -p "$POSTGRES_DB_PATH" "$TMP/postgres-stats"
|
||||
mkdir -p "$POSTGRES_DB_PATH"
|
||||
|
||||
# Postgres does not allow it's server to be run with super user access, we use user postgres and the file system owner also needs to be the same user postgres
|
||||
chown postgres:postgres "$POSTGRES_DB_PATH" "$TMP/postgres-stats"
|
||||
chown postgres:postgres "$POSTGRES_DB_PATH"
|
||||
|
||||
# Initialize the postgres db file system
|
||||
su postgres -c "/usr/lib/postgresql/13/bin/initdb -D $POSTGRES_DB_PATH"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
rm -f /appsmith-stacks/data/postgres/main/core.*
|
||||
exec /usr/lib/postgresql/13/bin/postgres -D "/appsmith-stacks/data/postgres/main" -c listen_addresses=127.0.0.1 -c stats_temp_directory="$TMP/postgres-stats"
|
||||
exec /usr/lib/postgresql/13/bin/postgres -D "/appsmith-stacks/data/postgres/main" -c listen_addresses=127.0.0.1
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user