bin/withdraw: Make sure the database is actually open.
[ca] / 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"