|Summary:||devel/py-buildbot home directory environment incorrect|
|Product:||Ports & Packages||Reporter:||ari|
|Component:||Individual Port(s)||Assignee:||Kubilay Kocak <koobs>|
|Severity:||Affects Many People||Flags:||bugzilla:
Description ari 2020-07-24 03:05:47 UTC
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 place. 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="buildbot" buildbot_worker_env="HOME=/home/buildbot USER=buildbot"