File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ RUN rm -rf /etc/service && mkdir /home/postgres/pgdata && chown -R postgres:post
162
162
chmod 755 $d/* \
163
163
&& ln -s /run/supervise/$(basename $d) $d/supervise; \
164
164
done \
165
+ && chmod +r /etc/motd \
165
166
&& ln -snf $RW_DIR/service /etc/service \
166
167
# && ln -s $RW_DIR/pam.d-postgresql /etc/pam.d/postgresql \
167
168
&& ln -s $RW_DIR/postgres.yml $PGHOME/postgres.yml \
@@ -180,7 +181,7 @@ RUN rm -rf /etc/service && mkdir /home/postgres/pgdata && chown -R postgres:post
180
181
do echo "export $e" >> /etc/bash.bashrc; \
181
182
done \
182
183
&& ln -s /etc/skel/.bashrc $PGHOME/.bashrc \
183
- && echo "source /etc/motd" >> /root /.bashrc \
184
+ && echo "source /etc/motd" >> /home/postgres /.bashrc \
184
185
# Allow users in the root group to access the following files and dirs
185
186
&& if [ "$COMPRESS" != "true" ]; then \
186
187
chmod 664 /etc/passwd \
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ RUN rm -rf /etc/service && mkdir /home/postgres/pgdata && chown -R postgres:post
159
159
chmod 755 $d/* \
160
160
&& ln -s /run/supervise/$(basename $d) $d/supervise; \
161
161
done \
162
+ && chmod +r /etc/motd \
162
163
&& ln -snf $RW_DIR/service /etc/service \
163
164
# && ln -s $RW_DIR/pam.d-postgresql /etc/pam.d/postgresql \
164
165
&& ln -s $RW_DIR/postgres.yml $PGHOME/postgres.yml \
@@ -177,7 +178,7 @@ RUN rm -rf /etc/service && mkdir /home/postgres/pgdata && chown -R postgres:post
177
178
do echo "export $e" >> /etc/bash.bashrc; \
178
179
done \
179
180
&& ln -s /etc/skel/.bashrc $PGHOME/.bashrc \
180
- && echo "source /etc/motd" >> /root /.bashrc \
181
+ && echo "source /etc/motd" >> /home/postgres /.bashrc \
181
182
# Allow users in the root group to access the following files and dirs
182
183
&& if [ "$COMPRESS" != "true" ]; then \
183
184
chmod 664 /etc/passwd \
You can’t perform that action at this time.
0 commit comments