]> andersk Git - moira.git/commitdiff
stop cups earlier in this process.
authorzacheiss <zacheiss>
Mon, 16 Nov 2009 21:55:31 +0000 (21:55 +0000)
committerzacheiss <zacheiss>
Mon, 16 Nov 2009 21:55:31 +0000 (21:55 +0000)
gen/cups-print.sh

index 1e3c42f46ade2a812f18cc012b23fce339809059..3c33e9500747a05c163901b5ee0903c1cca9f7a2 100755 (executable)
@@ -21,6 +21,10 @@ CUPSLOCAL=/etc/cups
 test -r $TARFILE || exit $MR_MISSINGFILE
 test -d $CUPSLOCAL || exit $MR_MISSINGFILE
 
+# We need to kill off CUPS to prevent it from overwriting
+# state data whilst updating
+/etc/init.d/cups stop
+
 /etc/cups/bin/check-disabled.pl 2>/dev/null
 
 # Unpack the tar file, getting only files that are newer than the
@@ -33,12 +37,12 @@ if [ -s /etc/cups/printers.conf.tmp ]; then
     mv /etc/cups/printers.conf.tmp /etc/cups/printers.conf
 fi
 
-# Now, make a stab at the PPD file.
-/etc/cups/bin/gen-ppd.pl
-
-/etc/init.d/cups stop
 /etc/init.d/cups start
 
+# Now, make a stab at the PPD file.  This is okay to run after
+# because CUPS will pick up the new PPDs later
+/etc/cups/bin/gen-ppd.pl
+
 if [ $? != 0 ]; then
     exit $MR_MKCRED
 fi
This page took 0.027883 seconds and 5 git commands to generate.