Show More
@@ -42,7 +42,7 b' Metrics' | |||
|
42 | 42 | |
|
43 | 43 | ``` |
|
44 | 44 | mkdir docker-rhodecode && cd docker-rhodecode |
|
45 |
curl -s -o rcstack https:// |
|
|
45 | curl -L -s -o rcstack https://dls.rhodecode.com/get/master && chmod +x rcstack | |
|
46 | 46 | ./rcstack get-started |
|
47 | 47 | ``` |
|
48 | 48 |
@@ -270,7 +270,7 b' rcstack_self_update_usage() {' | |||
|
270 | 270 | |
|
271 | 271 | # :command.usage_examples |
|
272 | 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 |
|
|
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 | 274 | echo |
|
275 | 275 | |
|
276 | 276 | fi |
@@ -1642,7 +1642,7 b' get_docker_definitions() {' | |||
|
1642 | 1642 | echo "$(green bootstrap_definitions: docker definitions extracted to $SOURCE_DIR)" |
|
1643 | 1643 | |
|
1644 | 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 | 1648 | # src/lib/reconfigure_ini.sh |
@@ -2070,12 +2070,18 b' rcstack_self_update_command() {' | |||
|
2070 | 2070 | echo "running: curl --no-progress-meter --fail --header \"X-Rc-Auth-Token: $AUTH_TOKEN\" -o $DL_TARGET -L $FETCH_FROM" |
|
2071 | 2071 | fi |
|
2072 | 2072 | |
|
2073 |
curl --no-progress-meter --fail --header "X-Rc-Auth-Token: $AUTH_TOKEN" -o $DL_TARGET |
|
|
2073 | curl -L --no-progress-meter --fail --header "X-Rc-Auth-Token: $AUTH_TOKEN" -o $DL_TARGET $FETCH_FROM | |
|
2074 | 2074 | |
|
2075 | 2075 | chmod +x $DL_TARGET |
|
2076 | 2076 | |
|
2077 | version_old=$($FINAL_TARGET --version) | |
|
2078 | rc_version_old=$($FINAL_TARGET cli image-info) | |
|
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 | |
|
2082 | version_old=$($FINAL_TARGET --version) | |
|
2083 | rc_version_old=$($FINAL_TARGET cli image-info) | |
|
2084 | fi | |
|
2079 | 2085 | |
|
2080 | 2086 | version_dl=$($DL_TARGET --version) |
|
2081 | 2087 | rc_version_dl=$($DL_TARGET cli image-info) |
@@ -2119,7 +2125,12 b' rcstack_self_update_command() {' | |||
|
2119 | 2125 | fi |
|
2120 | 2126 | |
|
2121 | 2127 | echo "$(green self-update: updating $RC_SCRIPT_NAME script to new version: $version_dl)" |
|
2122 | rm $FINAL_TARGET && mv -v $DL_TARGET $FINAL_TARGET | |
|
2128 | ||
|
2129 | if [[ -f "$FINAL_TARGET" ]]; then | |
|
2130 | rm $FINAL_TARGET && mv -v $DL_TARGET $FINAL_TARGET | |
|
2131 | else | |
|
2132 | mv -v $DL_TARGET $FINAL_TARGET | |
|
2133 | fi | |
|
2123 | 2134 | |
|
2124 | 2135 | get_docker_definitions $revision $DEBUG |
|
2125 | 2136 |
General Comments 0
You need to be logged in to leave comments.
Login now