Fix permissions

This commit is contained in:
sfigato 2021-02-21 15:50:31 +01:00
parent 37fcb787dd
commit b79dad6720
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -19,20 +19,23 @@ steps:
- | - |
if ! [ "$(ls -A /cache_stage/etc)" ]; then if ! [ "$(ls -A /cache_stage/etc)" ]; then
cp -r /etc/. /cache_stage/etc/ cp -r /etc/. /cache_stage/etc/
getfacl -R /etc > /cache_stage/etc/permissions.acl
fi fi
- | - |
if ! [ "$(ls -A /cache_stage/opt)" ]; then if ! [ "$(ls -A /cache_stage/opt)" ]; then
cp -r /opt/. /cache_stage/opt/ cp -r /opt/. /cache_stage/opt/
getfacl -R /opt > /cache_stage/opt/permissions.acl
fi fi
- | - |
if ! [ "$(ls -A /cache_stage/var)" ]; then if ! [ "$(ls -A /cache_stage/var)" ]; then
cp -r /var/. /cache_stage/var/ cp -r /var/. /cache_stage/var/
getfacl -R /var > /cache_stage/var/permissions.acl
fi fi
- | - |
if ! [ "$(ls -A /cache_stage/usr)" ]; then if ! [ "$(ls -A /cache_stage/usr)" ]; then
cp -r /usr/. /cache_stage/usr/ cp -r /usr/. /cache_stage/usr/
getfacl -R /usr > /cache_stage/usr/permissions.acl
fi fi
- getfacl -R / > /drone/permissions.acl
volumes: volumes:
- name: etc_electron-ozone - name: etc_electron-ozone
path: /cache_stage/etc path: /cache_stage/etc
@ -48,7 +51,10 @@ steps:
image: leophys/pikaur:0.2 image: leophys/pikaur:0.2
user: root user: root
commands: commands:
- setfacl --restore=/drone/permissions.acl - setfacl --restore=/etc/permissions.acl
- setfacl --restore=/opt/permissions.acl
- setfacl --restore=/var/permissions.acl
- setfacl --restore=/usr/permissions.acl
volumes: volumes:
- name: build_electron-ozone - name: build_electron-ozone
path: /build path: /build
@ -156,20 +162,23 @@ steps:
- | - |
if ! [ "$(ls -A /cache_stage/etc)" ]; then if ! [ "$(ls -A /cache_stage/etc)" ]; then
cp -r /etc/. /cache_stage/etc/ cp -r /etc/. /cache_stage/etc/
getfacl -R /etc > /cache_stage/etc/permissions.acl
fi fi
- | - |
if ! [ "$(ls -A /cache_stage/opt)" ]; then if ! [ "$(ls -A /cache_stage/opt)" ]; then
cp -r /opt/. /cache_stage/opt/ cp -r /opt/. /cache_stage/opt/
getfacl -R /opt > /cache_stage/opt/permissions.acl
fi fi
- | - |
if ! [ "$(ls -A /cache_stage/var)" ]; then if ! [ "$(ls -A /cache_stage/var)" ]; then
cp -r /var/. /cache_stage/var/ cp -r /var/. /cache_stage/var/
getfacl -R /var > /cache_stage/var/permissions.acl
fi fi
- | - |
if ! [ "$(ls -A /cache_stage/usr)" ]; then if ! [ "$(ls -A /cache_stage/usr)" ]; then
cp -r /usr/. /cache_stage/usr/ cp -r /usr/. /cache_stage/usr/
getfacl -R /usr > /cache_stage/usr/permissions.acl
fi fi
- getfacl -R / > /drone/permissions.acl
volumes: volumes:
- name: etc_discord_arch_electron - name: etc_discord_arch_electron
path: /cache_stage/etc path: /cache_stage/etc
@ -185,7 +194,10 @@ steps:
image: leophys/pikaur:0.2 image: leophys/pikaur:0.2
user: root user: root
commands: commands:
- setfacl --restore=/drone/permissions.acl - setfacl --restore=/etc/permissions.acl
- setfacl --restore=/opt/permissions.acl
- setfacl --restore=/var/permissions.acl
- setfacl --restore=/usr/permissions.acl
volumes: volumes:
- name: build_discord_arch_electron - name: build_discord_arch_electron
path: /build path: /build
@ -309,6 +321,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: b46825c8463c24fdbf50f23a320c77710eaf88b592634b5e498d17bb492d17f7 hmac: 48cf15f03ad0089745a6ba4bc71df8f3d98eb7ef67c54f02f6cecf6e02eaa50c
... ...