8 lines
190 B
Bash
8 lines
190 B
Bash
#!/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 |