From: zacheiss Date: Thu, 17 Dec 2009 20:58:52 +0000 (+0000) Subject: If we have a tmp file that's not zero-length, we need to move it into place. X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/c654a748d86a56a86804bccd8de87315c0cd4404 If we have a tmp file that's not zero-length, we need to move it into place. --- 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