From: Mark Wooding Date: Wed, 2 Jan 2013 19:43:56 +0000 (+0000) Subject: bin/withdraw: Make sure the database is actually open. X-Git-Url: https://git.distorted.org.uk/~mdw/ca/commitdiff_plain/f480f87cfd3a6ac3315cf3302ebfc2b631de6456 bin/withdraw: Make sure the database is actually open. --- diff --git a/bin/withdraw b/bin/withdraw index ed6e740..af47bc5 100755 --- a/bin/withdraw +++ b/bin/withdraw @@ -25,6 +25,11 @@ ## 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"