add target for tmpfiles create
This commit is contained in:
parent
5593dd0433
commit
e7bb97019d
5
Makefile
5
Makefile
@ -21,6 +21,10 @@ sd-reload: ## Run this after editing systemd service/timer files
|
||||
sd-users: ## Run this after adding new users
|
||||
sudo systemctl restart systemd-sysusers.service
|
||||
|
||||
.PHONY: tmpfiles
|
||||
tmpfiles: ## Run this after editing files under tmpfiles.d
|
||||
sudo systemd-tmpfiles --create
|
||||
|
||||
.PHONY: save-perms
|
||||
save-perms: ## Saves the file permissions to ./acl. Run this after adding new files with correct permissions
|
||||
getfacl --recursive root | ./makepac/sort_acl.sh > acl
|
||||
@ -29,7 +33,6 @@ save-perms: ## Saves the file permissions to ./acl. Run this after adding new f
|
||||
set-perms: ## Restores permissions of all files from ./acl
|
||||
sudo setfacl --restore acl
|
||||
|
||||
# TODO: Remove glob
|
||||
.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"
|
||||
|
Loading…
Reference in New Issue
Block a user