From: Mark Wooding Date: Sun, 31 Jul 2011 17:25:46 +0000 (+0100) Subject: bin/clean: Simple new program to reset the directory to a clean state. X-Git-Url: https://git.distorted.org.uk/~mdw/ca/commitdiff_plain/56530a7d16aa857b9ed5b39a2922d6ad6d5c8b5e bin/clean: Simple new program to reset the directory to a clean state. --- diff --git a/bin/clean b/bin/clean new file mode 100755 index 0000000..539e068 --- /dev/null +++ b/bin/clean @@ -0,0 +1,8 @@ +#! /bin/sh + +set -e +certroot=$(cd ${0%/*}/..; pwd) +cd "$certroot" +umask 022 + +rm -rf ca.cert archive certs crls index private state tmp