summaryrefslogtreecommitdiffstats
path: root/scripts/ca-remove.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ca-remove.sh')
-rwxr-xr-xscripts/ca-remove.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/ca-remove.sh b/scripts/ca-remove.sh
index 7a42c3d..8394720 100755
--- a/scripts/ca-remove.sh
+++ b/scripts/ca-remove.sh
@@ -1,7 +1,11 @@
#!/bin/sh -x
-. ./ca-include.sh
+INSTANCE_NAME=pki-master
-pkiremove -pki_instance_root=$INSTANCE_ROOT \
- -pki_instance_name=$CA_INSTANCE_NAME \
- -force
+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