Fix permissions

master
blallo 2021-02-22 19:34:26 +01:00
parent d9e79bcc36
commit 1f49c3cf48
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
1 changed files with 16 additions and 2 deletions

View File

@ -36,8 +36,15 @@ steps:
cp -r /usr/. /cache_stage/usr/
getfacl -p -R /usr > /cache_stage/usr/permissions.acl
fi
- |
if ! [ "$(ls -A /build2)" ]; then
cp -r /build/. /build2/
getfacl -p -R /usr > /build2/permissions.acl
fi
- chmod a+rw /output
volumes:
- name: build_electron-ozone
path: /build2
- name: etc_electron-ozone
path: /cache_stage/etc
- name: opt_electron-ozone
@ -58,7 +65,7 @@ steps:
- setfacl --restore=/opt/permissions.acl
- setfacl --restore=/var/permissions.acl
- setfacl --restore=/usr/permissions.acl
- chown build:33 -R /build
- setfacl --restore=/build/permissions.acl
volumes:
- name: build_electron-ozone
path: /build
@ -210,8 +217,15 @@ steps:
cp -r /usr/. /cache_stage/usr/
getfacl -p -R /usr > /cache_stage/usr/permissions.acl
fi
- |
if ! [ "$(ls -A /build2)" ]; then
cp -r /build/. /build2/
getfacl -p -R /usr > /build2/permissions.acl
fi
- chmod a+rw /output
volumes:
- name: build_discord_arch_electron
path: /build2
- name: etc_discord_arch_electron
path: /cache_stage/etc
- name: opt_discord_arch_electron
@ -232,7 +246,7 @@ steps:
- setfacl --restore=/opt/permissions.acl
- setfacl --restore=/var/permissions.acl
- setfacl --restore=/usr/permissions.acl
- chown -R build:33 /output
- setfacl --restore=/build/permissions.acl
volumes:
- name: build_discord_arch_electron
path: /build