mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
chmod: add ~/AppImages
This commit is contained in:
parent
b1a25ac3a2
commit
dde96cbc53
8
chmod
8
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/
|
||||
|
Loading…
Reference in New Issue
Block a user