dev-util/buildbot-worker: Set correct permissions in pkg_config
authorBrian Dolbec <dolsen@gentoo.org>
Wed, 13 May 2020 20:46:40 +0000 (13:46 -0700)
committerBrian Dolbec <dolsen@gentoo.org>
Wed, 13 May 2020 20:46:40 +0000 (13:46 -0700)
Update buildbot.tac.sample to match current master.cfg.sample settings.
This allows for the worker to connect to the hello-world sample bot properly
provided it is on the same host as the master.

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
dev-util/buildbot-worker/buildbot-worker-2.7.0.ebuild
dev-util/buildbot-worker/buildbot-worker-9999.ebuild
dev-util/buildbot-worker/files/buildbot.tac.sample

index 4c141f7b35449dd4b68acec718b09c513a81629b..be5258cd99842a206f107862519e432e444ac734 100644 (file)
@@ -114,7 +114,7 @@ pkg_config() {
        if [[ ! -d "${instance_path}" ]]; then
                mkdir --parents "${instance_path}" || die "Unable to create directory ${buildworker_path}"
        fi
-       chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+       chown --recursive buildbot:buildbot "${instance_path}" || die "Setting permissions for instance failed"
        cp "${buildworker_path}/buildbot.tac.sample" "${instance_path}/buildbot.tac" \
                || die "Moving sample configuration failed"
        ln --symbolic --relative "/etc/init.d/buildbot_worker" "/etc/init.d/buildbot_worker.${instance_name}" \
@@ -122,6 +122,8 @@ pkg_config() {
 
        if [[ ! -d "${instance_log_path}" ]]; then
                mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
+               chown --recursive buildbot:buildbot "${instance_log_path}" \
+                       || die "Setting permissions for instance failed"
        fi
        ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
                || die "Unable to create link to log file"
index 4c141f7b35449dd4b68acec718b09c513a81629b..be5258cd99842a206f107862519e432e444ac734 100644 (file)
@@ -114,7 +114,7 @@ pkg_config() {
        if [[ ! -d "${instance_path}" ]]; then
                mkdir --parents "${instance_path}" || die "Unable to create directory ${buildworker_path}"
        fi
-       chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+       chown --recursive buildbot:buildbot "${instance_path}" || die "Setting permissions for instance failed"
        cp "${buildworker_path}/buildbot.tac.sample" "${instance_path}/buildbot.tac" \
                || die "Moving sample configuration failed"
        ln --symbolic --relative "/etc/init.d/buildbot_worker" "/etc/init.d/buildbot_worker.${instance_name}" \
@@ -122,6 +122,8 @@ pkg_config() {
 
        if [[ ! -d "${instance_log_path}" ]]; then
                mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
+               chown --recursive buildbot:buildbot "${instance_log_path}" \
+                       || die "Setting permissions for instance failed"
        fi
        ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
                || die "Unable to create link to log file"
index ee3d7ca3cef91b0a07f12bd9048a591cb0f3dfce..19bd941911bdbac04a1fcb5d7abb711ea6473903 100644 (file)
@@ -29,9 +29,9 @@ maxRotatedFiles = 10
 port = 9989
 
 # worker settings
-worker_name = 'worker-1'
-passwd = 'mypasswd'
-buildmaster_host = 'mybuildbot.foobar.org'
+worker_name = 'example-worker'
+passwd = 'pass'
+buildmaster_host = 'localhost'
 keepalive = 600
 umask = None
 maxdelay = 300