File tree 24 files changed +31
-27
lines changed
24 files changed +31
-27
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ RUN mv -v /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample /usr/share/post
54
54
&& ln -sv ../postgresql.conf.sample /usr/share/postgresql/$PG_MAJOR/ \
55
55
&& sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample
56
56
57
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
57
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
58
58
59
59
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
60
60
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ RUN set -ex \
161
161
# make the sample config easier to munge (and "correct by default")
162
162
RUN sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
163
163
164
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
164
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
165
165
166
166
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
167
167
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
35
35
36
36
mkdir -p /var/run/postgresql
37
37
chown -R postgres /var/run/postgresql
38
- chmod g+s /var/run/postgresql
38
+ chmod 775 /var/run/postgresql
39
39
40
40
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
41
41
if [ " $POSTGRES_INITDB_XLOGDIR " ]; then
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
35
35
36
36
mkdir -p /var/run/postgresql
37
37
chown -R postgres /var/run/postgresql
38
- chmod g+s /var/run/postgresql
38
+ chmod 775 /var/run/postgresql
39
39
40
40
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
41
41
if [ " $POSTGRES_INITDB_XLOGDIR " ]; then
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ RUN mv -v /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample /usr/share/post
54
54
&& ln -sv ../postgresql.conf.sample /usr/share/postgresql/$PG_MAJOR/ \
55
55
&& sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample
56
56
57
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
57
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
58
58
59
59
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
60
60
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ RUN set -ex \
161
161
# make the sample config easier to munge (and "correct by default")
162
162
RUN sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
163
163
164
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
164
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
165
165
166
166
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
167
167
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
35
35
36
36
mkdir -p /var/run/postgresql
37
37
chown -R postgres /var/run/postgresql
38
- chmod g+s /var/run/postgresql
38
+ chmod 775 /var/run/postgresql
39
39
40
40
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
41
41
if [ " $POSTGRES_INITDB_XLOGDIR " ]; then
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
35
35
36
36
mkdir -p /var/run/postgresql
37
37
chown -R postgres /var/run/postgresql
38
- chmod g+s /var/run/postgresql
38
+ chmod 775 /var/run/postgresql
39
39
40
40
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
41
41
if [ " $POSTGRES_INITDB_XLOGDIR " ]; then
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ RUN mv -v /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample /usr/share/post
54
54
&& ln -sv ../postgresql.conf.sample /usr/share/postgresql/$PG_MAJOR/ \
55
55
&& sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample
56
56
57
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
57
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
58
58
59
59
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
60
60
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ RUN set -ex \
134
134
# make the sample config easier to munge (and "correct by default")
135
135
RUN sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
136
136
137
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
137
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
138
138
139
139
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
140
140
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
35
35
36
36
mkdir -p /var/run/postgresql
37
37
chown -R postgres /var/run/postgresql
38
- chmod g+s /var/run/postgresql
38
+ chmod 775 /var/run/postgresql
39
39
40
40
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
41
41
if [ " $POSTGRES_INITDB_XLOGDIR " ]; then
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
35
35
36
36
mkdir -p /var/run/postgresql
37
37
chown -R postgres /var/run/postgresql
38
- chmod g+s /var/run/postgresql
38
+ chmod 775 /var/run/postgresql
39
39
40
40
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
41
41
if [ " $POSTGRES_INITDB_XLOGDIR " ]; then
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ RUN mv -v /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample /usr/share/post
54
54
&& ln -sv ../postgresql.conf.sample /usr/share/postgresql/$PG_MAJOR/ \
55
55
&& sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample
56
56
57
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
57
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
58
58
59
59
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
60
60
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ RUN set -ex \
134
134
# make the sample config easier to munge (and "correct by default")
135
135
RUN sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
136
136
137
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
137
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
138
138
139
139
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
140
140
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
35
35
36
36
mkdir -p /var/run/postgresql
37
37
chown -R postgres /var/run/postgresql
38
- chmod g+s /var/run/postgresql
38
+ chmod 775 /var/run/postgresql
39
39
40
40
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
41
41
if [ " $POSTGRES_INITDB_XLOGDIR " ]; then
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
35
35
36
36
mkdir -p /var/run/postgresql
37
37
chown -R postgres /var/run/postgresql
38
- chmod g+s /var/run/postgresql
38
+ chmod 775 /var/run/postgresql
39
39
40
40
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
41
41
if [ " $POSTGRES_INITDB_XLOGDIR " ]; then
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ RUN mv -v /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample /usr/share/post
54
54
&& ln -sv ../postgresql.conf.sample /usr/share/postgresql/$PG_MAJOR/ \
55
55
&& sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample
56
56
57
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
57
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
58
58
59
59
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
60
60
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ RUN set -ex \
134
134
# make the sample config easier to munge (and "correct by default")
135
135
RUN sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
136
136
137
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
137
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
138
138
139
139
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
140
140
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
35
35
36
36
mkdir -p /var/run/postgresql
37
37
chown -R postgres /var/run/postgresql
38
- chmod g+s /var/run/postgresql
38
+ chmod 775 /var/run/postgresql
39
39
40
40
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
41
41
if [ " $POSTGRES_INITDB_XLOGDIR " ]; then
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
35
35
36
36
mkdir -p /var/run/postgresql
37
37
chown -R postgres /var/run/postgresql
38
- chmod g+s /var/run/postgresql
38
+ chmod 775 /var/run/postgresql
39
39
40
40
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
41
41
if [ " $POSTGRES_INITDB_XLOGDIR " ]; then
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ RUN set -ex \
136
136
# make the sample config easier to munge (and "correct by default")
137
137
RUN sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/local/share/postgresql/postgresql.conf.sample
138
138
139
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
139
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
140
140
141
141
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
142
142
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ RUN mv -v /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample /usr/share/post
54
54
&& ln -sv ../postgresql.conf.sample /usr/share/postgresql/$PG_MAJOR/ \
55
55
&& sed -ri "s!^#?(listen_addresses)\s *=\s *\S +.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample
56
56
57
- RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod g+s /var/run/postgresql
57
+ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
58
58
59
59
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH
60
60
ENV PGDATA /var/lib/postgresql/data
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
35
35
36
36
mkdir -p /var/run/postgresql
37
37
chown -R postgres /var/run/postgresql
38
- chmod g+s /var/run/postgresql
38
+ chmod 775 /var/run/postgresql
39
39
40
40
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
41
41
if [ " $POSTGRES_INITDB_XLOGDIR " ]; then
Original file line number Diff line number Diff line change @@ -46,17 +46,21 @@ for version in "${versions[@]}"; do
46
46
case " $version " in
47
47
9.2|9.3)
48
48
uuidConfigFlag=' --with-ossp-uuid'
49
- sed -i ' s/%%OSSP_UUID_ENV_VARS%%/ENV OSSP_UUID_VERSION ' " $osspUuidVersion " ' \nENV OSSP_UUID_SHA256 ' " $osspUuidHash " ' \n/' " $version /$variant /Dockerfile"
50
- sed -i $' /%%INSTALL_OSSP_UUID%%/ {r ossp-uuid.template\n d}' " $version /$variant /Dockerfile"
49
+ sed -i \
50
+ -e ' s/%%OSSP_UUID_ENV_VARS%%/ENV OSSP_UUID_VERSION ' " $osspUuidVersion " ' \nENV OSSP_UUID_SHA256 ' " $osspUuidHash " ' \n/' \
51
+ -e $' /%%INSTALL_OSSP_UUID%%/ {r ossp-uuid.template\n d}' \
52
+ " $version /$variant /Dockerfile"
51
53
52
54
# configure: WARNING: unrecognized options: --enable-tap-tests
53
55
sed -i ' /--enable-tap-tests/d' " $version /$variant /Dockerfile"
54
56
;;
55
57
56
58
* )
57
59
uuidConfigFlag=' --with-uuid=e2fs'
58
- sed -i ' /%%OSSP_UUID_ENV_VARS%%/d' " $version /$variant /Dockerfile"
59
- sed -i ' /%%INSTALL_OSSP_UUID%%/d' " $version /$variant /Dockerfile"
60
+ sed -i \
61
+ -e ' /%%OSSP_UUID_ENV_VARS%%/d' \
62
+ -e ' /%%INSTALL_OSSP_UUID%%/d' \
63
+ " $version /$variant /Dockerfile"
60
64
;;
61
65
esac
62
66
sed -i ' s/%%UUID_CONFIG_FLAG%%/' " $uuidConfigFlag " ' /' " $version /$variant /Dockerfile"
You can’t perform that action at this time.
0 commit comments