summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-07-20 08:29:45 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-07-20 08:30:12 +0200
commitbf08efd7f536c42bf44dc5ca4f57712bb670247f (patch)
tree1256e85d643b953fdda034511854a908c90c8672
parent0ea8903598da7c4ee8c34b476c2d78d69a8e2334 (diff)
downloadpki-dev-bf08efd7f536c42bf44dc5ca4f57712bb670247f.tar.gz
pki-dev-bf08efd7f536c42bf44dc5ca4f57712bb670247f.tar.xz
pki-dev-bf08efd7f536c42bf44dc5ca4f57712bb670247f.zip
Added subordinate scripts.
-rwxr-xr-xscripts/kra-sub-create.sh3
-rwxr-xr-xscripts/kra-sub-remove.sh9
-rwxr-xr-xscripts/sub-restart.sh4
-rwxr-xr-xscripts/sub-start.sh5
-rwxr-xr-xscripts/sub-stop.sh5
-rwxr-xr-xscripts/tomcat-sub-restart.sh4
-rwxr-xr-xscripts/tomcat-sub-start.sh5
-rwxr-xr-xscripts/tomcat-sub-stop.sh5
8 files changed, 40 insertions, 0 deletions
diff --git a/scripts/kra-sub-create.sh b/scripts/kra-sub-create.sh
new file mode 100755
index 0000000..da48317
--- /dev/null
+++ b/scripts/kra-sub-create.sh
@@ -0,0 +1,3 @@
+#!/bin/sh -x
+
+pkispawn -v -f kra-sub.cfg -s KRA
diff --git a/scripts/kra-sub-remove.sh b/scripts/kra-sub-remove.sh
new file mode 100755
index 0000000..cfb731a
--- /dev/null
+++ b/scripts/kra-sub-remove.sh
@@ -0,0 +1,9 @@
+#!/bin/sh -x
+
+SRC_DIR=`cd ../.. ; pwd`
+INSTANCE_NAME=pki-subkra
+
+#pkidestroy -v -s KRA -i $INSTANCE_NAME
+
+echo -n Secret123 > password.txt
+pkidestroy -v -s KRA -i $INSTANCE_NAME -u caadmin -W password.txt
diff --git a/scripts/sub-restart.sh b/scripts/sub-restart.sh
new file mode 100755
index 0000000..661e7cd
--- /dev/null
+++ b/scripts/sub-restart.sh
@@ -0,0 +1,4 @@
+#!/bin/sh -x
+
+./sub-stop.sh
+./sub-start.sh
diff --git a/scripts/sub-start.sh b/scripts/sub-start.sh
new file mode 100755
index 0000000..67d31af
--- /dev/null
+++ b/scripts/sub-start.sh
@@ -0,0 +1,5 @@
+#!/bin/sh -x
+
+INSTANCE_NAME=pki-sub
+
+systemctl start pki-tomcatd@$INSTANCE_NAME.service
diff --git a/scripts/sub-stop.sh b/scripts/sub-stop.sh
new file mode 100755
index 0000000..dc9dc05
--- /dev/null
+++ b/scripts/sub-stop.sh
@@ -0,0 +1,5 @@
+#!/bin/sh -x
+
+INSTANCE_NAME=pki-sub
+
+systemctl stop pki-tomcatd@$INSTANCE_NAME.service
diff --git a/scripts/tomcat-sub-restart.sh b/scripts/tomcat-sub-restart.sh
new file mode 100755
index 0000000..1d66467
--- /dev/null
+++ b/scripts/tomcat-sub-restart.sh
@@ -0,0 +1,4 @@
+#!/bin/sh -x
+
+./tomcat-sub-stop.sh
+./tomcat-sub-start.sh
diff --git a/scripts/tomcat-sub-start.sh b/scripts/tomcat-sub-start.sh
new file mode 100755
index 0000000..67d31af
--- /dev/null
+++ b/scripts/tomcat-sub-start.sh
@@ -0,0 +1,5 @@
+#!/bin/sh -x
+
+INSTANCE_NAME=pki-sub
+
+systemctl start pki-tomcatd@$INSTANCE_NAME.service
diff --git a/scripts/tomcat-sub-stop.sh b/scripts/tomcat-sub-stop.sh
new file mode 100755
index 0000000..dc9dc05
--- /dev/null
+++ b/scripts/tomcat-sub-stop.sh
@@ -0,0 +1,5 @@
+#!/bin/sh -x
+
+INSTANCE_NAME=pki-sub
+
+systemctl stop pki-tomcatd@$INSTANCE_NAME.service