summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-07-20 08:36:04 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-07-20 08:36:04 +0200
commit7eb3f1603dda1f8ea2c261fc3996ba85444d4bd0 (patch)
tree370ddc980f14637ee66e4051d2dbb18af072c67e /scripts
parentbebc523927e7b13c964c294b65406ddaec30ad02 (diff)
downloadpki-dev-7eb3f1603dda1f8ea2c261fc3996ba85444d4bd0.tar.gz
pki-dev-7eb3f1603dda1f8ea2c261fc3996ba85444d4bd0.tar.xz
pki-dev-7eb3f1603dda1f8ea2c261fc3996ba85444d4bd0.zip
Added TPS clone scripts.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tps-clone-create.sh5
-rwxr-xr-xscripts/tps-clone-remove.sh6
2 files changed, 11 insertions, 0 deletions
diff --git a/scripts/tps-clone-create.sh b/scripts/tps-clone-create.sh
new file mode 100755
index 0000000..8f273dd
--- /dev/null
+++ b/scripts/tps-clone-create.sh
@@ -0,0 +1,5 @@
+#!/bin/sh -x
+
+/bin/cp tps_backup_keys.p12 /tmp
+
+pkispawn -vvv -f tps-clone.cfg -s TPS
diff --git a/scripts/tps-clone-remove.sh b/scripts/tps-clone-remove.sh
new file mode 100755
index 0000000..cb6b7e0
--- /dev/null
+++ b/scripts/tps-clone-remove.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+SRC_DIR=`cd ../.. ; pwd`
+INSTANCE_NAME=pki-clone
+
+pkidestroy -v -s TPS -i $INSTANCE_NAME