Skip to content

Commit

Permalink
Merge pull request #16 from woblerr/fix_owner_bashrc
Browse files Browse the repository at this point in the history
Fix owner for .bashrc in alpine image.
  • Loading branch information
woblerr authored Mar 22, 2022
2 parents cab5a18 + 89fb0ec commit 910071f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ 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} \
/var/log/pgbackrest \
/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.
Expand Down

0 comments on commit 910071f

Please sign in to comment.