From 89fb0ec7ab0ea206badceaf845e64d5686f3f853 Mon Sep 17 00:00:00 2001 From: woblerr Date: Tue, 22 Mar 2022 18:56:08 +0300 Subject: [PATCH] Fix owner for .bashrc in alpine image. --- files/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/entrypoint.sh b/files/entrypoint.sh index 76acb48..2faa12b 100644 --- a/files/entrypoint.sh +++ b/files/entrypoint.sh @@ -20,6 +20,8 @@ if [ "${uid}" = "0" ]; then if [ "${BACKREST_USER}" != "pgbackrest" ] || [ "${BACKREST_UID}" != "2001" ]; then usermod -g ${BACKREST_GID} -l ${BACKREST_USER} -u ${BACKREST_UID} -m -d /home/${BACKREST_USER} pgbackrest fi + # pgBackRest completion. + echo "source /home/${BACKREST_USER}/.bash_completion.d/pgbackrest-completion.sh" >> /home/${BACKREST_USER}/.bashrc # Correct user:group. chown -R ${BACKREST_USER}:${BACKREST_GROUP} \ /home/${BACKREST_USER} \ @@ -27,8 +29,6 @@ if [ "${uid}" = "0" ]; then /var/lib/pgbackrest \ /var/spool/pgbackrest \ /etc/pgbackrest - # pgBackRest completion. - echo "source /home/${BACKREST_USER}/.bash_completion.d/pgbackrest-completion.sh" >> /home/${BACKREST_USER}/.bashrc fi # Start docker container as pgBackRest TLS server.