DEVTOOLS-7936: Set permissions on public packages
This updates the public repository upload process to change the group on the uploaded files to `cf` and adds the write permission for members of the group. This should allow the `cf` user to properly overwrite the file when signing it.
This commit is contained in:
parent
f36dc6cfd8
commit
030b768eeb
1
Makefile
1
Makefile
|
@ -89,6 +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)'; \
|
||||||
done
|
done
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue