DEVTOOLS-7936: Remove redundant chgrp from publish
This removes the redundant chgrp command from the publish step when pushing packages to our public repositories. The directory being pushed to has the setgid bit set on it, which means that we don't need to force the group using this command. Further, attempting to do so resulted in an error as the cfsync user does not have the appropriate permissions to use the chgrp command.
This commit is contained in:
parent
a1a554a29d
commit
4c1b89576c
2
Makefile
2
Makefile
|
@ -89,7 +89,7 @@ define publish_package
|
||||||
for HOST in $(CF_PKG_HOSTS); do \
|
for HOST in $(CF_PKG_HOSTS); do \
|
||||||
ssh-keyscan -t rsa $$HOST >> ~/.ssh/known_hosts; \
|
ssh-keyscan -t rsa $$HOST >> ~/.ssh/known_hosts; \
|
||||||
scp -4 cloudflared*.$(1) cfsync@$$HOST:/state/cf-pkg/staging/$(2)/$(TARGET_PUBLIC_REPO)/cloudflared/; \
|
scp -4 cloudflared*.$(1) cfsync@$$HOST:/state/cf-pkg/staging/$(2)/$(TARGET_PUBLIC_REPO)/cloudflared/; \
|
||||||
ssh cfsync@$$HOST 'chgrp cf /state/cf-pkg/staging/$(2)/$(TARGET_PUBLIC_REPO)/cloudflared/*.$(1) && chmod g+w /state/cf-pkg/staging/$(2)/$(TARGET_PUBLIC_REPO)/cloudflared/*.$(1)'; \
|
ssh cfsync@$$HOST 'chmod g+w /state/cf-pkg/staging/$(2)/$(TARGET_PUBLIC_REPO)/cloudflared/*.$(1)'; \
|
||||||
done
|
done
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue