chiark / gitweb /
bin/update: Refresh the profiles in the database from the configuration.
[ca] / bin / update
index bc6841072b1ea1a0ea8d408cc165c17b42cb038d..fb46363aaae469ea6023305f275e7b408b0f79b4 100755 (executable)
@@ -30,6 +30,9 @@ sqlite3 db "$CERTROOT/state/ca.db"
 db nullvalue nil
 cd "$CERTROOT"
 
+## Refresh the database's idea of request profiles.
+sync-profiles
+
 ## Reissue certificates for requests which need it.
 set now [now]
 set now_db [time-db $now]
@@ -53,4 +56,7 @@ exec openssl ca -config "etc/openssl.conf" -updatedb 2>@1
 exec openssl ca -config "etc/openssl.conf" -gencrl | \
     openssl crl -text -out "crl" 2>@1
 
+## Call the user hook.
+update-hook
+
 ###----- That's all, folks --------------------------------------------------