Skip to content

Commit

Permalink
Silence error message when there is no key
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Maxwell committed Jan 3, 2017
1 parent 8eab81d commit 08278ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/bin/update-rancher-ssl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if [ -f "$CA_ROOT" ]; then

if [ -n "$CATTLE_RANCHER_SERVER_VERSION" ]; then
# Remove the key if it exists
if keytool -list -keystore $JKS_STORE -alias rancher_ca -storepass $JAVA_STORE_PASS ; then
if keytool -list -keystore $JKS_STORE -alias rancher_ca -storepass $JAVA_STORE_PASS 2>&1 > /dev/null ; then
keytool -delete -alias rancher_ca -storepass $JAVA_STORE_PASS -keystore $JKS_STORE -noprompt
fi

Expand Down

0 comments on commit 08278ac

Please sign in to comment.