dev-util/buildbot: Set correct permissions in pkg_config
authorBrian Dolbec <dolsen@gentoo.org>
Wed, 13 May 2020 20:42:51 +0000 (13:42 -0700)
committerBrian Dolbec <dolsen@gentoo.org>
Wed, 13 May 2020 20:42:51 +0000 (13:42 -0700)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
dev-util/buildbot/buildbot-2.7.0.ebuild
dev-util/buildbot/buildbot-9999.ebuild

index 1769ba6f1d19dfe980c191c0d21f95500d682748..01fd9b6094922735dbb2bb30d64a8d661ba23b42 100644 (file)
@@ -173,7 +173,7 @@ pkg_config() {
                mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
        fi
        "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
-       chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+       chown --recursive buildbot:buildbot "${instance_path}" || die "Setting permissions for instance failed"
        mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
                || die "Moving sample configuration failed"
        ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
@@ -181,6 +181,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 cdce9bbe8ff4a544a2cfa5b0b5c1e8b273acf7bb..35a2e69c15ec5e47e6e54420f06c81949fa717a6 100644 (file)
@@ -201,7 +201,7 @@ pkg_config() {
                mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
        fi
        "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
-       chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+       chown --recursive buildbot:buildbot "${instance_path}" || die "Setting permissions for instance failed"
        mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
                || die "Moving sample configuration failed"
        ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
@@ -209,6 +209,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"