change root to readlink root
This commit is contained in:
parent
a7052b04a7
commit
81bb36ee48
4
Makefile
4
Makefile
@ -35,8 +35,8 @@ set-perms: ## Restores permissions of all files from ./acl
|
||||
|
||||
.PHONY: user-perms
|
||||
user-perms: ## Grant running user all permissions. Need for git operations. Does not get copied to real filesystem
|
||||
find root -type f | xargs sudo setfacl -m "u:${USER}:r"
|
||||
find root -type d | xargs sudo setfacl -m "u:${USER}:rwx"
|
||||
find `readlink root` -type d | xargs sudo setfacl -m "u:${USER}:rwx"
|
||||
find `readlink root` -type f | xargs sudo setfacl -m "u:${USER}:r"
|
||||
|
||||
.PHONY: skel
|
||||
skel: ## Creates common directories needed
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
root="root"
|
||||
root=$(readlink root)
|
||||
|
||||
all_files() {
|
||||
find $root -type f,l
|
||||
|
Loading…
x
Reference in New Issue
Block a user