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
162162 chmod 755 $d/* \
163163 && ln -s /run/supervise/$(basename $d) $d/supervise; \
164164 done \
165+ && chmod +r /etc/motd \
165166 && ln -snf $RW_DIR/service /etc/service \
166167 # && ln -s $RW_DIR/pam.d-postgresql /etc/pam.d/postgresql \
167168 && 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
180181 do echo "export $e" >> /etc/bash.bashrc; \
181182 done \
182183 && ln -s /etc/skel/.bashrc $PGHOME/.bashrc \
183- && echo "source /etc/motd" >> /root /.bashrc \
184+ && echo "source /etc/motd" >> /home/postgres /.bashrc \
184185 # Allow users in the root group to access the following files and dirs
185186 && if [ "$COMPRESS" != "true" ]; then \
186187 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
159159 chmod 755 $d/* \
160160 && ln -s /run/supervise/$(basename $d) $d/supervise; \
161161 done \
162+ && chmod +r /etc/motd \
162163 && ln -snf $RW_DIR/service /etc/service \
163164 # && ln -s $RW_DIR/pam.d-postgresql /etc/pam.d/postgresql \
164165 && 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
177178 do echo "export $e" >> /etc/bash.bashrc; \
178179 done \
179180 && ln -s /etc/skel/.bashrc $PGHOME/.bashrc \
180- && echo "source /etc/motd" >> /root /.bashrc \
181+ && echo "source /etc/motd" >> /home/postgres /.bashrc \
181182 # Allow users in the root group to access the following files and dirs
182183 && if [ "$COMPRESS" != "true" ]; then \
183184 chmod 664 /etc/passwd \
You can’t perform that action at this time.
0 commit comments