Set correct permissions to files inside "/etc/wireguard/" directory
This commit is contained in:
parent
4f874bfc5d
commit
d29ba88b18
@ -20,6 +20,7 @@ build {
|
||||
find /tmp/rootfs/ -type d -exec chmod 755 '{}' ';' -exec chown root:root '{}' ';'
|
||||
find /tmp/rootfs/ -type f -exec chmod 644 '{}' ';' -exec chown root:root '{}' ';'
|
||||
find /tmp/rootfs/ -type f -regex '.+/\(bin\|cron\..+\)/.+' -exec chmod 755 '{}' ';'
|
||||
find /tmp/rootfs/ -type f -regex '.+/\(etc/wireguard\)/.+' -exec chmod 600 '{}' ';'
|
||||
find /tmp/rootfs/ -mindepth 1 -maxdepth 1 -exec cp -rfla '{}' / ';'
|
||||
rm -rf /tmp/rootfs/
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user