diff options
author | Bryan Drewery <bryan@shatow.net> | 2021-09-03 01:30:04 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2021-09-03 01:36:56 +0300 |
commit | f61da72ad62723868af26581984b0b21586e5a07 (patch) | |
tree | 412e898a692463fcdf6d59d91553f988554485d3 /src | |
parent | c25726ffc803379a1d1759d6cdaecd6b1ded66e1 (diff) |
enter_interactive: Allow non-root to write to /wrkdirs
Diffstat (limited to 'src')
-rw-r--r-- | src/share/poudriere/common.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh index 3af2ff0e..fdfb726d 100644 --- a/src/share/poudriere/common.sh +++ b/src/share/poudriere/common.sh @@ -2010,6 +2010,9 @@ enter_interactive() { To see this again: cat /etc/motd EOF + if [ "${PORTBUILD_USER}" != "root" ]; then + chown -R "${PORTBUILD_USER}" "${MASTERMNT}/wrkdirs" + fi if [ ${INTERACTIVE_MODE} -eq 1 ]; then msg "Entering interactive test mode. Type 'exit' when done." if injail pw groupmod -n wheel -m "${PORTBUILD_USER}"; then |