From dde96cbc53465bfa133481bb6018b63d7d02ce21 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 15 Aug 2024 09:22:32 +0300 Subject: [PATCH] chmod: add ~/AppImages --- chmod | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chmod b/chmod index e15f3f64..5f79f932 100755 --- a/chmod +++ b/chmod @@ -29,11 +29,19 @@ chmod -v 700 ~/.ssh touch ~/.ssh/authorized_keys chmod -v 600 ~/.ssh/authorized_keys +mkdir -p "$HOME/AppImages" +chmod a+rx "$HOME/AppImages/" "$HOME/AppImages/*.appimage" + # if we have support for setting ACL, some of this becomes easier (although maybe redundant) if hash setfacl 2> /dev/null; then setfacl --modify u:$(id -un):rw,g:$(id -gn):r,o:r ~/.oidentd.conf + setfacl --modify=u:$(id -un):rwX,g:$(id -gn):rX,o:rX "$HOME/AppImages/" setfacl --recursive --modify u:$(id -un):rwX,g:$(id -gn):rX,o:rX ~/public_html/ + for appimage in $(find $HOME/AppImages/*.appimage); do + setfacl --modify=u:$(id -un):rwX,g:$(id -gn):rX,o:rX $appimage + done + # Enabling laziness pt. … if [[ -d ~/.shell-things ]]; then setfacl --recursive --modify u:$(id -un):rwX,g:$(id -gn):rX,o:rX ~/.shell-things/