##// END OF EJS Templates
rcstack: use dl server
super-admin -
Show More
@@ -42,7 +42,7 b' Metrics'
42
42
43 ```
43 ```
44 mkdir docker-rhodecode && cd docker-rhodecode
44 mkdir docker-rhodecode && cd docker-rhodecode
45 curl -s -o rcstack https://code.rhodecode.com/rhodecode-enterprise-docker/raw/master/scripts/rcstack/rcstack && chmod +x rcstack
45 curl -L -s -o rcstack https://dls.rhodecode.com/get/master && chmod +x rcstack
46 ./rcstack get-started
46 ./rcstack get-started
47 ```
47 ```
48
48
@@ -270,7 +270,7 b' rcstack_self_update_usage() {'
270
270
271 # :command.usage_examples
271 # :command.usage_examples
272 printf "%s\n" "Examples:"
272 printf "%s\n" "Examples:"
273 printf " - ./rccstack self-update simply to update it to a new version\n - ./rccstack self-update --installer-revision=dev --revision=dev to fetch dev\n branch and install it\n # In case rcstack breaks, you can always just fetch the stack script using\n curl\n curl -s -o rcstack\n https://code.rhodecode.com/rhodecode-enterprise-docker/raw/master/scripts/rcstack/rcstack\n && chmod +x rcstack\n"
273 printf " - ./rccstack self-update simply to update it to a new version\n \n # to fetch dev branch and install it\n - ./rccstack self-update --installer-revision=dev --revision=dev\n \n # In case rcstack breaks, you can re-download the stack script using curl\n curl -L -s -o rcstack https://dls.rhodecode.com/get/master && chmod +x rcstack\n"
274 echo
274 echo
275
275
276 fi
276 fi
@@ -1642,7 +1642,7 b' get_docker_definitions() {'
1642 echo "$(green bootstrap_definitions: docker definitions extracted to $SOURCE_DIR)"
1642 echo "$(green bootstrap_definitions: docker definitions extracted to $SOURCE_DIR)"
1643
1643
1644 # cleanup
1644 # cleanup
1645 find -nowarn -ignore_readdir_race $SOURCE_DIR -name "*.~*~" -delete
1645 find -nowarn -ignore_readdir_race "$SOURCE_DIR" -name "*.~*~" -delete
1646 }
1646 }
1647
1647
1648 # src/lib/reconfigure_ini.sh
1648 # src/lib/reconfigure_ini.sh
@@ -2070,12 +2070,18 b' rcstack_self_update_command() {'
2070 echo "running: curl --no-progress-meter --fail --header \"X-Rc-Auth-Token: $AUTH_TOKEN\" -o $DL_TARGET -L $FETCH_FROM"
2070 echo "running: curl --no-progress-meter --fail --header \"X-Rc-Auth-Token: $AUTH_TOKEN\" -o $DL_TARGET -L $FETCH_FROM"
2071 fi
2071 fi
2072
2072
2073 curl --no-progress-meter --fail --header "X-Rc-Auth-Token: $AUTH_TOKEN" -o $DL_TARGET -L $FETCH_FROM
2073 curl -L --no-progress-meter --fail --header "X-Rc-Auth-Token: $AUTH_TOKEN" -o $DL_TARGET $FETCH_FROM
2074
2074
2075 chmod +x $DL_TARGET
2075 chmod +x $DL_TARGET
2076
2076
2077 version_old=0
2078 rc_version_old=0
2079
2080 # check if we have OLD file, in case we don't just set versions to 0
2081 if [[ -f "$FINAL_TARGET" ]]; then
2077 version_old=$($FINAL_TARGET --version)
2082 version_old=$($FINAL_TARGET --version)
2078 rc_version_old=$($FINAL_TARGET cli image-info)
2083 rc_version_old=$($FINAL_TARGET cli image-info)
2084 fi
2079
2085
2080 version_dl=$($DL_TARGET --version)
2086 version_dl=$($DL_TARGET --version)
2081 rc_version_dl=$($DL_TARGET cli image-info)
2087 rc_version_dl=$($DL_TARGET cli image-info)
@@ -2119,7 +2125,12 b' rcstack_self_update_command() {'
2119 fi
2125 fi
2120
2126
2121 echo "$(green self-update: updating $RC_SCRIPT_NAME script to new version: $version_dl)"
2127 echo "$(green self-update: updating $RC_SCRIPT_NAME script to new version: $version_dl)"
2128
2129 if [[ -f "$FINAL_TARGET" ]]; then
2122 rm $FINAL_TARGET && mv -v $DL_TARGET $FINAL_TARGET
2130 rm $FINAL_TARGET && mv -v $DL_TARGET $FINAL_TARGET
2131 else
2132 mv -v $DL_TARGET $FINAL_TARGET
2133 fi
2123
2134
2124 get_docker_definitions $revision $DEBUG
2135 get_docker_definitions $revision $DEBUG
2125
2136
General Comments 0
You need to be logged in to leave comments. Login now