Skip to content

Commit 8bde519

Browse files
authored
Merge pull request #46 from matttrach/download-install
add curl to download installer if it is not there
2 parents 888b760 + 289bd36 commit 8bde519

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ if [ "${INSTALL_METHOD}" = "rpm" ]; then
1818
else
1919
export INSTALL_RKE2_ARTIFACT_PATH="${REMOTE_PATH}";
2020
fi
21+
if [ ! -f "${REMOTE_PATH}"/install.sh ]; then
22+
curl -sfL https://get.rke2.io -o "${REMOTE_PATH}"/install.sh
23+
fi
2124

2225
chmod +x "${REMOTE_PATH}"/install.sh
2326
"${REMOTE_PATH}"/install.sh

0 commit comments

Comments
 (0)