4 certroot
=$
(cd ${0%/*}/..
; pwd)
10 indices
="byhash byserial"
11 for i
in $indices; do rm -rf index
/$i; done
12 for i
in $indices; do mkdir index
/$i.new
; done
14 for i
in certs
/*.cert
; do
20 if [ -d index
/$i ]; then mv index
/$i index
/$i.old
; fi;
22 for i
in $indices; do mv index
/$i.new index
/$i; done
23 for i
in $indices; do rm -rf index
/$i.old
; done