Skip to content

Commit 30df817

Browse files
committed
motd update
1 parent eae2f16 commit 30df817

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docker/postgres-gis/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 \

docker/postgres/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 \

0 commit comments

Comments
 (0)