chmod: add autostart scripts

This commit is contained in:
Aminda Suomalainen 2026-01-13 13:29:23 +02:00
parent 9b0319cb89
commit 3c86470921
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

7
chmod
View File

@ -32,6 +32,13 @@ chmod -v 600 $HOME/.ssh/authorized_keys
mkdir -p "$HOME/AppImages"
chmod a+rx "$HOME/AppImages/" "$HOME/AppImages/*.appimage"
if [ -d "$HOME/.config/autostart-scripts" ]; then
chmod -v +x "$HOME/.config/autostart-scripts/*"
fi
if [ -d "$HOME/.config/old-autostart-scripts" ]; then
chmod -v +x "$HOME/.config/old-autostart-scripts/*"
fi
# 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 $HOME/.oidentd.conf