Skip to content

Commit

Permalink
#2935: install_rancher, configure for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Feb 21, 2018
1 parent ca9ce20 commit ca9bcd9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions install_rancher
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ esac

## download rancher-compose
if [ "$DISTRO_TYPE" = 'unix' ]; then
curl -O "$RANCHER_REPO/releases/download/$RANCHER_VERSION/$RANCHER_DISTRO-$RANCHER_VERSION.tar.gz"
curl -OL "$RANCHER_REPO/releases/download/$RANCHER_VERSION/$RANCHER_DISTRO-$RANCHER_VERSION.tar.gz"
tar zxf "$RANCHER_DISTRO-$RANCHER_VERSION.tar.gz"
rm "$RANCHER_DISTRO-$RANCHER_VERSION.tar.gz"
sudo mv rancher-compose-v"$RANCHER_VERSION"/rancher-compose /usr/local/bin/rancher-compose
Expand All @@ -42,8 +42,9 @@ elif [ "$DISTRO_TYPE" = 'linux' ]; then
sudo chmod +x /usr/local/bin/rancher-compose

elif [ "$DISTRO_TYPE" = 'windows' ]; then
curl -O "$RANCHER_REPO/releases/download/$RANCHER_VERSION/$RANCHER_DISTRO-$RANCHER_VERSION.zip"
unzip -j "$RANCHER_DISTRO-$RANCHER_VERSION.zip"
curl -OL "$RANCHER_REPO/releases/download/$RANCHER_VERSION/$RANCHER_DISTRO-$RANCHER_VERSION.zip"
unzip -j "$RANCHER_DISTRO-$RANCHER_VERSION"
mv -f rancher-compose.exe /c/Users/$(whoami)/bin
rm "$RANCHER_DISTRO-$RANCHER_VERSION.zip"

else
Expand Down

0 comments on commit ca9bcd9

Please sign in to comment.