Add 'init/entrypoint.sh'

master
Danny Bessems 3 years ago
parent 3aa36f928b
commit b4fce7ea41
  1. 8
      init/entrypoint.sh

@ -0,0 +1,8 @@
#!/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