summaryrefslogtreecommitdiffstats
path: root/scripts/kra-remove.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kra-remove.sh')
-rwxr-xr-xscripts/kra-remove.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/kra-remove.sh b/scripts/kra-remove.sh
index 3ddfa9d..1a08c91 100755
--- a/scripts/kra-remove.sh
+++ b/scripts/kra-remove.sh
@@ -1,7 +1,13 @@
#!/bin/sh -x
-INSTANCE_NAME=pki-kra
+SRC_DIR=`cd ../.. ; pwd`
+INSTANCE_NAME=kra-master
-pkiremove -pki_instance_root=/var/lib\
- -pki_instance_name=$INSTANCE_NAME\
- -force
+pkidestroy -s KRA -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