]> andersk Git - moira.git/commitdiff
If we have a tmp file that's not zero-length, we need to move it into place.
authorzacheiss <zacheiss>
Thu, 17 Dec 2009 20:58:52 +0000 (20:58 +0000)
committerzacheiss <zacheiss>
Thu, 17 Dec 2009 20:58:52 +0000 (20:58 +0000)
gen/cups-cluster.sh

index 927281e8e70d4f62936e0c3a9b9259201880712e..63b5e144ff1ab39f4446f03d1ec83f5ddef0ba24 100755 (executable)
@@ -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
This page took 0.040958 seconds and 5 git commands to generate.