Commit b3f3a806 authored by weixu's avatar weixu

Set the default value for DEBUG in cluster/saltbase/salt/generate-cert/make-ca-cert.sh

In commit 07d7cfd3, people add ${DEBUG} == "true" in file cluster/saltbase/salt/generate-cert/make-ca-cert.sh But the default value for DEBUG is not set. In that commit, it set the value of DEBUG in cluster/ubuntu/util.sh where it call this script. When using this script in saltstack to bring up cluster in other cloud platforms, it will fail to generate the cert since we set set -o nounset in make-ca-cert.sh and var DEBUG does not set. Set a default value for DEBUG here will fix this problem.
parent 3616b4bf
......@@ -18,6 +18,8 @@ set -o errexit
set -o nounset
set -o pipefail
DEBUG="${DEBUG:-false}"
if [ "${DEBUG}" == "true" ]; then
set -x
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment