From 43c79c4754f9c68679b183419bfa170ffecda569 Mon Sep 17 00:00:00 2001 From: Jondy Zhao <jondy.zhao@gmail.com> Date: Wed, 31 Jul 2013 15:22:43 +0800 Subject: [PATCH] slapos-cygwin-bootstrip: add another computer certificate/key for test node --- windows/scripts/slapos-cygwin-bootstrip.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/windows/scripts/slapos-cygwin-bootstrip.sh b/windows/scripts/slapos-cygwin-bootstrip.sh index 3b60a95..88f59da 100755 --- a/windows/scripts/slapos-cygwin-bootstrip.sh +++ b/windows/scripts/slapos-cygwin-bootstrip.sh @@ -28,6 +28,12 @@ function show_usage() echo "" echo "save them in your home path." echo "" + echo "Register another computer for test node, save them in the root path" + echo "" + echo " test-computer.key" + echo " test-computer.crt" + echo "" + echo "" } readonly -f show_usage @@ -207,6 +213,9 @@ csih_inform "Starting configure slapos client and node ..." for _name in certificate key computer.key computer.crt ; do [[ -f ~/${_name} ]] || csih_error "missing file ~/${_name}" done +for _name in /test-computer.key /test-computer.crt ; do + [[ -f ${_name} ]] || csih_error "missing file ${_name}" +done csih_inform "mkdir /etc/opt/slapos/ssl/partition_pki" mkdir -p /etc/opt/slapos/ssl/partition_pki -- 2.30.9