add target for tmpfiles create

This commit is contained in:
Balakrishnan Balasubramanian 2024-05-09 12:13:08 -04:00
parent 5593dd0433
commit e7bb97019d

View File

@ -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,9 +33,8 @@ 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
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"