Skip to content

Commit

Permalink
Merge pull request rancher#7263 from cloudnautique/move_update_ssl_sc…
Browse files Browse the repository at this point in the history
…ript_in_server

Move update ssl script in server
  • Loading branch information
ibuildthecloud authored Jan 5, 2017
2 parents aa22f3f + 08278ac commit 96778df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/artifacts/cattle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ run() {

env | grep CATTLE | grep -v PASS | sort

update-rancher-ssl

local ram=$(free -g --si | awk '/^Mem:/{print $2}')
if [ ${ram} -gt 6 ]; then
MX="4g"
Expand Down Expand Up @@ -260,6 +258,8 @@ master()
run
}

update-rancher-ssl

if [ "$1" = "extract" ]; then
extract
elif [ "$CATTLE_MASTER" = true ]; then
Expand Down
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 96778df

Please sign in to comment.