Skip to content

Commit

Permalink
Merge pull request #52 from briandowns/issue-51
Browse files Browse the repository at this point in the history
Resolve Symlink Issue in Issue 51
  • Loading branch information
briandowns authored Jun 30, 2020
2 parents 9c11fb4 + 38340eb commit 33cdc7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
.vscode
/data
rke2
/build

8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ download_hash() {
fi
info "downloading hash ${HASH_URL}"
download "${TMP_HASH}" "${HASH_URL}"
HASH_EXPECTED=$(awk -F ' ' '{print $1}' ${TMP_HASH})
HASH_EXPECTED=$(awk -F ' ' '{print $1}' "${TMP_HASH}")
}

# installed_hash_matches checks hash against
Expand Down Expand Up @@ -481,8 +481,8 @@ download_and_verify() {
# create_symlinks adds additional utility links.
create_symlinks() {
info "creating symlinks..."
for bin in $(readlink -f "${BASE_DIR}/data/**/bin/*"); do
ln -sf ${bin} "${INSTALL_PATH}/$(basename $bin)"
for bin in ${BASE_DIR}/data/*/bin/*; do
ln -sf "${bin}" "${INSTALL_PATH}"/"$(basename ${bin})"
done
}

Expand Down Expand Up @@ -860,13 +860,13 @@ eval set -- $(escape "${INSTALL_RKE2_EXEC}") $(quote "$@")
setup_env "$@"
download_and_verify
setup_selinux
create_symlinks
create_killall
create_uninstall
systemd_disable
create_env_file
create_service_file
service_enable_and_start
create_symlinks
}

exit 0

0 comments on commit 33cdc7c

Please sign in to comment.