change root to readlink root
				
					
				
			This commit is contained in:
		
							
								
								
									
										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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user