This repository has been archived on 2020-06-05. You can view files and clone it, but cannot push or open issues or pull requests.
Docker.Containers.CUPS/init/entrypoint.sh

8 lines
190 B
Bash
Raw Normal View History

2020-01-17 13:35:13 +00:00
#!/bin/sh
if [ $(grep -ci $CUPS_USERNAME /etc/shadow) -eq 0 ]; then
adduser -H -S -G lpadmin $CUPS_USERNAME
echo $CUPS_USERNAME:$CUPS_PASSWORD | chpasswd
fi
exec /usr/sbin/cupsd -f