CUPS ppd persistence. Currently failing to persist /etc/cups/printers.conf
All checks were successful
continuous-integration/drone/push Build is passing

FIX smb.conf.j2 must end with new line
This commit is contained in:
2022-12-15 03:13:58 +01:00
parent 8bf39954d9
commit 43a3122da7
2 changed files with 6 additions and 10 deletions

View File

@@ -16,12 +16,8 @@ ENV ADMIN_PASSWORD_SECRET=samba-admin-password \
WINBIND_USE_DEFAULT_DOMAIN=yes \
WORKGROUP=AD
ENV TERM=xterm
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && \
apt-get -yqq --no-install-recommends install \
DEBIAN_FRONTEND=noninteractive apt-get -yqq --no-install-recommends install \
# resolvconf \
# dnsutils \
# vim \
@@ -59,15 +55,14 @@ RUN apt-get -y update && \
#RUN chmod 777 /home
RUN env --unset=DEBIAN_FRONTEND
COPY *.conf.j2 /root/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN mkdir -p /etc/cups-persist/ppd && \
RUN chmod +x /entrypoint.sh && \
mkdir -p /etc/cups-persist/ppd && \
ln -s /etc/cups-persist/printers.conf /etc/cups/printers.conf && \
rmdir /etc/cups/ppd && \
ln -s /etc/cups-persist/ppd /etc/cups/ppd && \
sed -i "s:Listen localhost\:631:Port 631\nServerAlias \*:" /etc/cups/cupsd.conf && \
sed -E -i "s:(Order allow\,deny):\1\n Allow all:" /etc/cups/cupsd.conf

View File

@@ -33,3 +33,4 @@
load printers = yes
dcerpc endpoint servers = +spoolss
rpcd_spoolss:idle_seconds=300