Skip to content

provision: auto-detect repo root instead of assuming ~/osctrl#835

Open
alvarofraguas wants to merge 1 commit into
jmpsec:mainfrom
alvarofraguas:pr/fix-provision-path
Open

provision: auto-detect repo root instead of assuming ~/osctrl#835
alvarofraguas wants to merge 1 commit into
jmpsec:mainfrom
alvarofraguas:pr/fix-provision-path

Conversation

@alvarofraguas
Copy link
Copy Markdown
Collaborator

Summary

  • Replaces the hardcoded SOURCE_PATH=~/osctrl default in deploy/provision.sh with script-relative path detection: SOURCE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
  • This resolves the provisioning failure when the osctrl repo is cloned to a non-root user's home directory (or anywhere other than ~/osctrl)
  • The -s PATH / --source PATH flag override still works as before

Closes #825

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

provision script failure - assumed /root path

1 participant