Add 'init/entrypoint.sh'
This commit is contained in:
parent
3aa36f928b
commit
b4fce7ea41
8
init/entrypoint.sh
Normal file
8
init/entrypoint.sh
Normal 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
|
Reference in New Issue
Block a user