bin/make-ca-key, lib/func.sh: Make user and group names configurable.
[ca] / bin / refresh
CommitLineData
b294f6b5
MW
1#! /bin/sh
2
3set -e
4certroot=$(cd ${0%/*}/..; pwd)
5cd "$certroot"
6. lib/func.sh
7runas_ca
8
9badness=0
10indices="byhash byserial"
11for i in $indices; do rm -rf index/$i; done
12for i in $indices; do mkdir index/$i.new; done
13
14for i in certs/*.cert; do
15 linkserial "$i" .new
16 linkhash "$i" .new
17done
18
19for i in $indices; do
20 if [ -d index/$i ]; then mv index/$i index/$i.old; fi;
21done
22for i in $indices; do mv index/$i.new index/$i; done
23for i in $indices; do rm -rf index/$i.old; done