Add 'init/entrypoint.sh'

This commit is contained in:
Danny Bessems 2020-01-17 13:35:13 +00:00
parent 3aa36f928b
commit b4fce7ea41
1 changed files with 8 additions and 0 deletions

8
init/entrypoint.sh Normal file
View File

@ -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