Docker-cups/docker-entrypoint.sh
2022-07-10 16:20:25 +02:00

10 lines
182 B
Bash
Executable File

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