Fix permissions
This commit is contained in:
parent
37fcb787dd
commit
b79dad6720
22
.drone.yml
22
.drone.yml
|
@ -19,20 +19,23 @@ steps:
|
|||
- |
|
||||
if ! [ "$(ls -A /cache_stage/etc)" ]; then
|
||||
cp -r /etc/. /cache_stage/etc/
|
||||
getfacl -R /etc > /cache_stage/etc/permissions.acl
|
||||
fi
|
||||
- |
|
||||
if ! [ "$(ls -A /cache_stage/opt)" ]; then
|
||||
cp -r /opt/. /cache_stage/opt/
|
||||
getfacl -R /opt > /cache_stage/opt/permissions.acl
|
||||
fi
|
||||
- |
|
||||
if ! [ "$(ls -A /cache_stage/var)" ]; then
|
||||
cp -r /var/. /cache_stage/var/
|
||||
getfacl -R /var > /cache_stage/var/permissions.acl
|
||||
fi
|
||||
- |
|
||||
if ! [ "$(ls -A /cache_stage/usr)" ]; then
|
||||
cp -r /usr/. /cache_stage/usr/
|
||||
getfacl -R /usr > /cache_stage/usr/permissions.acl
|
||||
fi
|
||||
- getfacl -R / > /drone/permissions.acl
|
||||
volumes:
|
||||
- name: etc_electron-ozone
|
||||
path: /cache_stage/etc
|
||||
|
@ -48,7 +51,10 @@ steps:
|
|||
image: leophys/pikaur:0.2
|
||||
user: root
|
||||
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:
|
||||
- name: build_electron-ozone
|
||||
path: /build
|
||||
|
@ -156,20 +162,23 @@ steps:
|
|||
- |
|
||||
if ! [ "$(ls -A /cache_stage/etc)" ]; then
|
||||
cp -r /etc/. /cache_stage/etc/
|
||||
getfacl -R /etc > /cache_stage/etc/permissions.acl
|
||||
fi
|
||||
- |
|
||||
if ! [ "$(ls -A /cache_stage/opt)" ]; then
|
||||
cp -r /opt/. /cache_stage/opt/
|
||||
getfacl -R /opt > /cache_stage/opt/permissions.acl
|
||||
fi
|
||||
- |
|
||||
if ! [ "$(ls -A /cache_stage/var)" ]; then
|
||||
cp -r /var/. /cache_stage/var/
|
||||
getfacl -R /var > /cache_stage/var/permissions.acl
|
||||
fi
|
||||
- |
|
||||
if ! [ "$(ls -A /cache_stage/usr)" ]; then
|
||||
cp -r /usr/. /cache_stage/usr/
|
||||
getfacl -R /usr > /cache_stage/usr/permissions.acl
|
||||
fi
|
||||
- getfacl -R / > /drone/permissions.acl
|
||||
volumes:
|
||||
- name: etc_discord_arch_electron
|
||||
path: /cache_stage/etc
|
||||
|
@ -185,7 +194,10 @@ steps:
|
|||
image: leophys/pikaur:0.2
|
||||
user: root
|
||||
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:
|
||||
- name: build_discord_arch_electron
|
||||
path: /build
|
||||
|
@ -309,6 +321,6 @@ depends_on:
|
|||
|
||||
---
|
||||
kind: signature
|
||||
hmac: b46825c8463c24fdbf50f23a320c77710eaf88b592634b5e498d17bb492d17f7
|
||||
hmac: 48cf15f03ad0089745a6ba4bc71df8f3d98eb7ef67c54f02f6cecf6e02eaa50c
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue
Block a user