summaryrefslogtreecommitdiffstats
path: root/scripts/ds-restore.sh
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-07-20 07:28:26 +0200
committerEndi S. Dewata <edewata@redhat.com>2017-07-20 07:28:26 +0200
commitd2cc01d76e69f8d3602c5181263b95cbcd1c79a3 (patch)
tree7b136f1a76e2e808bc48332283054d9f05d4863d /scripts/ds-restore.sh
parentc23e0e44df69e44cb21c0e564ff1a7e2a7b67fd5 (diff)
downloadpki-dev-d2cc01d76e69f8d3602c5181263b95cbcd1c79a3.tar.gz
pki-dev-d2cc01d76e69f8d3602c5181263b95cbcd1c79a3.tar.xz
pki-dev-d2cc01d76e69f8d3602c5181263b95cbcd1c79a3.zip
Added DS scripts.
Diffstat (limited to 'scripts/ds-restore.sh')
-rwxr-xr-xscripts/ds-restore.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/ds-restore.sh b/scripts/ds-restore.sh
new file mode 100755
index 0000000..97b67df
--- /dev/null
+++ b/scripts/ds-restore.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+./ds-create.sh
+./ds-init.sh
+./ds-backend.sh
+
+./ds-stop.sh
+/bin/cp ca.ldif /tmp/ca.ldif
+./ds-start.sh
+
+ldif2db -Z pki-tomcat -n ca -i /tmp/ca.ldif