Date: Fri, 24 Jul 2020 03:05:47 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 248234] devel/py-buildbot home directory environment incorrect Message-ID: <bug-248234-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248234 Bug ID: 248234 Summary: devel/py-buildbot home directory environment incorrect Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: koobs@FreeBSD.org Reporter: ari@ish.com.au Flags: maintainer-feedback?(koobs@FreeBSD.org) Assignee: koobs@FreeBSD.org After installing the port in a new FreeBSD 12.1 jail, and starting it with = the default 'buildbot' user, the buildbot environment contains a HOME pointing = to /root instead of /home/buildbot. Passing --uid to twistd isn't setting the home directory to the correct pla= ce. A more FreeBSD approach to running with the correct user is to set the variable: buildbot_worker_user buildbot_worker_uid isn't the best way to do it, since that doesn't cause rc.subr to properly su to the correct user and twistd is itself launched as root. My workaround now is to set: buildbot_worker_user=3D"buildbot" buildbot_worker_env=3D"HOME=3D/home/buildbot USER=3Dbuildbot" --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248234-7788>