Skip to content

Commit

Permalink
Merge pull request #57 from ctrox/ensure-bin-dir
Browse files Browse the repository at this point in the history
This is mainly a problem if the /usr partition is read-only and
the bin prefix changes to `/opt/rancher-system-agent`. In any case if we
just always ensure the `bin` directory is created, this should fix #44.
  • Loading branch information
Oats87 authored Aug 27, 2021
2 parents 68d4108 + 4abf998 commit 14a2b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ EOF
}

download_rancher_agent() {
mkdir -p ${CATTLE_AGENT_BIN_PREFIX}
mkdir -p ${CATTLE_AGENT_BIN_PREFIX}/bin
if [ "${CATTLE_AGENT_BINARY_LOCAL}" = "true" ]; then
info "Using local rancher-system-agent binary from ${CATTLE_AGENT_BINARY_LOCAL_LOCATION}"
cp -f "${CATTLE_AGENT_BINARY_LOCAL_LOCATION}" ${CATTLE_AGENT_BIN_PREFIX}/bin/rancher-system-agent
Expand Down

0 comments on commit 14a2b5d

Please sign in to comment.