cupsd-docker/install-scripts/00_cupsd.sh

10 lines
220 B
Bash
Raw Normal View History

#/bin/bash
/usr/sbin/cupsd
while [ ! -f /var/run/cups/cupsd.pid ]; do
sleep 1
done
cupsctl --remote-admin --remote-any --share-printers
kill $(cat /var/run/cups/cupsd.pid)
echo "ServerAlias *" >> /etc/cups/cupsd.conf