summaryrefslogtreecommitdiffstats
path: root/scripts/caclone-remove.sh
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-08-07 11:26:54 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-08-07 11:26:54 -0500
commitb781ff44d12fe7941db92323f70ad5999e680793 (patch)
treef6ae09cb9e475fc69fb576474b124c7e7b36920d /scripts/caclone-remove.sh
parent628d95cead4323fc4f6a0fa2eeda286e0304ae78 (diff)
downloadpki-dev-b781ff44d12fe7941db92323f70ad5999e680793.tar.gz
pki-dev-b781ff44d12fe7941db92323f70ad5999e680793.tar.xz
pki-dev-b781ff44d12fe7941db92323f70ad5999e680793.zip
Added CA clone scripts.
Diffstat (limited to 'scripts/caclone-remove.sh')
-rwxr-xr-xscripts/caclone-remove.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/caclone-remove.sh b/scripts/caclone-remove.sh
index 43523e6..cedd353 100755
--- a/scripts/caclone-remove.sh
+++ b/scripts/caclone-remove.sh
@@ -1,5 +1,13 @@
#!/bin/sh -x
-pkiremove -pki_instance_root=/var/lib\
- -pki_instance_name=pki-caclone\
- -force
+SRC_DIR=`cd ../.. ; pwd`
+INSTANCE_NAME=pki-clone
+
+pkidestroy -s CA -i $INSTANCE_NAME
+
+rm -rf /etc/pki/$INSTANCE_NAME
+rm -rf /etc/sysconfig/$INSTANCE_NAME
+rm -rf /etc/sysconfig/pki/tomcat/$INSTANCE_NAME
+rm -rf /var/lib/pki/$INSTANCE_NAME
+rm -rf /var/log/pki/$INSTANCE_NAME
+rm -rf $SRC_DIR/certs/$INSTANCE_NAME