From c654a748d86a56a86804bccd8de87315c0cd4404 Mon Sep 17 00:00:00 2001 From: zacheiss Date: Thu, 17 Dec 2009 20:58:52 +0000 Subject: [PATCH] If we have a tmp file that's not zero-length, we need to move it into place. --- gen/cups-cluster.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gen/cups-cluster.sh b/gen/cups-cluster.sh index 927281e8..63b5e144 100755 --- a/gen/cups-cluster.sh +++ b/gen/cups-cluster.sh @@ -35,6 +35,9 @@ tar xf $TARFILE || exit $MR_TARERR /etc/init.d/cups start /etc/cups/bin/gen-ppd.pl 2>/dev/null +if [ -s /etc/cups/printers.conf.tmp ]; then + mv /etc/cups/printers.conf.tmp /etc/cups/printers.conf +fi # if Samba-enabled, then restart it too to have it pick up # new definitions -- 2.45.1