@@ -66,7 +66,7 @@ ENV PATHBACKUP = $PATH
6666RUN wget https://smarden.org/runit/runit-2.1.2.tar.gz -P /package/
6767COPY cron_unprivileged.c /package/
6868
69- RUN pip3 install 'PyYAML<6.0' setuptools pystache loader kazoo meld3 boto python-etcd psutil requests cdiff ydiff==1.3 --upgrade \
69+ RUN pip3 install 'PyYAML<6.0' setuptools pystache loader kazoo meld3 boto python-etcd psutil requests cdiff ydiff==1.4.2 --upgrade \
7070 && if [[ $PATRONI_VERSION == "multisite-" * ]]; then \
7171 git clone -b $PATRONI_VERSION https://github.com/cybertec-postgresql/patroni; \
7272 pip3 install ./patroni[kubernetes,etcd,etcd3]; \
@@ -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 \
0 commit comments