Docker-cups/docker-entrypoint.sh
2020-03-28 11:05:31 +01:00

10 lines
173 B
Bash
Executable File

#!/bin/bash -e
echo -e "${ADMIN_PASSWORD}\n${ADMIN_PASSWORD}" | passwd admin
if [ ! -f /etc/cups/printers.conf ]; then
cp -rpn /etc/cups-skel/* /etc/cups/
fi
exec "$@"