back up cupsd to config directory if not already there

This commit is contained in:
chuckcharlie
2025-04-11 10:30:18 -06:00
parent 3a49ec2422
commit 690a2bcf58

View File

@@ -32,9 +32,10 @@ cp /config/printers.conf /etc/cups/printers.conf
if [ `ls -l /config/cupsd.conf 2>/dev/null | wc -l` -ne 0 ]; then
cp /config/cupsd.conf /etc/cups/cupsd.conf
else
cp /etc/cups/cupsd.conf /config/cupsd.conf
fi
/usr/sbin/avahi-daemon --daemonize
/root/printer-update.sh &
exec /usr/sbin/cupsd -f