diff --git a/deploy/docker/fs/opt/appsmith/entrypoint.sh b/deploy/docker/fs/opt/appsmith/entrypoint.sh index 6001de8d7e..c47fefc3ab 100644 --- a/deploy/docker/fs/opt/appsmith/entrypoint.sh +++ b/deploy/docker/fs/opt/appsmith/entrypoint.sh @@ -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" diff --git a/deploy/docker/fs/opt/appsmith/run-postgres.sh b/deploy/docker/fs/opt/appsmith/run-postgres.sh index 3d10c5825e..427fa4a677 100755 --- a/deploy/docker/fs/opt/appsmith/run-postgres.sh +++ b/deploy/docker/fs/opt/appsmith/run-postgres.sh @@ -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