Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2021-09-03 01:30:04 +0300
committerBryan Drewery <bryan@shatow.net>2021-09-03 01:36:56 +0300
commitf61da72ad62723868af26581984b0b21586e5a07 (patch)
tree412e898a692463fcdf6d59d91553f988554485d3 /src
parentc25726ffc803379a1d1759d6cdaecd6b1ded66e1 (diff)
enter_interactive: Allow non-root to write to /wrkdirs
Diffstat (limited to 'src')
-rw-r--r--src/share/poudriere/common.sh3
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