bin/withdraw: Make sure the database is actually open.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 2 Jan 2013 19:43:56 +0000 (19:43 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 2 Jan 2013 19:43:56 +0000 (19:43 +0000)
bin/withdraw

index ed6e740..af47bc5 100755 (executable)
 ## Find the common utilities.
 source [file join [file dirname $argv0] "../lib/func.tcl"]
 
+## Open the database
+sqlite3 db "$CERTROOT/state/ca.db"
+db nullvalue nil
+cd "$CERTROOT"
+
 ## Get the list of requests.
 if {[llength $argv] != 1} {
   puts stderr "Usage: $QUIS REQID"