Add work-around for PostgreSQL 10 on live image, cf https://bugs.kali.org/view.php?id=4332
Raphaël Hertzog
6 years ago
|
0 |
kali-defaults (2017.3.2) kali-dev; urgency=medium
|
|
1 |
|
|
2 |
* Add work-around for PostgreSQL 10 on live image, cf
|
|
3 |
https://bugs.kali.org/view.php?id=4332
|
|
4 |
|
|
5 |
-- Raphaël Hertzog <[email protected]> Tue, 07 Nov 2017 15:20:09 +0100
|
|
6 |
|
0 | 7 |
kali-defaults (2017.3.1) kali-dev; urgency=medium
|
1 | 8 |
|
2 | 9 |
* Drop useless dependency on dconf-editor
|
7 | 7 |
if [ ${mem_available:-0} -lt 200000 ]; then
|
8 | 8 |
sed -i -e 's/shared_buffers = 128MB/shared_buffers = 64MB/' /etc/postgresql/$1/postgresql.conf
|
9 | 9 |
fi
|
|
10 |
|
|
11 |
# Work-around for https://bugs.kali.org/view.php?id=4332
|
|
12 |
if [ -d /var/lib/postgresql/$1/pg_commit_ts ]; then
|
|
13 |
# Ensure the directory is copied over in the tmpfs
|
|
14 |
# so that postgresql's fsync() on it succeeds.
|
|
15 |
touch /var/lib/postgresql/$1/pg_commit_ts/.foo
|
|
16 |
rm /var/lib/postgresql/$1/pg_commit_ts/.foo
|
|
17 |
fi
|