Skip to content

Commit

Permalink
Adicionar suporte a senha de root em CUPS
Browse files Browse the repository at this point in the history
Remover filtro de Kyocera (32-bit).
  • Loading branch information
Ederson Torresini committed Jun 16, 2020
1 parent e640743 commit 0c2760a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cups/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ RUN chmod 0755 /docker-entrypoint.sh && \
apt -y install cups && \
apt clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY ./kyofilter_B /usr/lib/cups/filter/
RUN chmod 0755 /usr/lib/cups/filter/kyofilter_B

EXPOSE 631/TCP
ENTRYPOINT ["/docker-entrypoint.sh"]
Expand Down
5 changes: 5 additions & 0 deletions cups/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@

set -e

if [ ! -z "${ROOT_PASSWD}" ]
then
echo "root:${ROOT_PASSWD}" | chpasswd
fi

exec "$@"

0 comments on commit 0c2760a

Please sign in to comment.