This commit is contained in:
2025-03-12 17:06:01 +02:00
parent 44457a00d6
commit 3ace3590ab

View File

@@ -37,19 +37,18 @@
system.activationScripts.makeDirs = { system.activationScripts.makeDirs = {
text = '' text = ''
export USER=ocbwoy3
create_dir() { create_dir() {
mkdir -p "$1" trap "USER=ocbwoy3 mkdir -p \"$1\"" EXIT
chown $USER:$USER "$1" trap "USER=ocbwoy3 chown ocbwoy3:ocbwoy3 \"$1\" EXIT
chmod 700 "$1" trap "USER=ocbwoy3 chmod 700 \"$1\"" EXIT
} }
trap "create_dir /home/$USER/Pictures/Screenshots" EXIT create_dir /home/$USER/Pictures/Screenshots
trap "create_dir /home/$USER/Downloads" EXIT create_dir /home/$USER/Downloads
trap "create_dir /home/$USER/Desktop" EXIT create_dir /home/$USER/Desktop
trap "create_dir /home/$USER/Documents" EXIT create_dir /home/$USER/Documents
trap "create_dir /home/$USER/Projects" EXIT create_dir /home/$USER/Projects
''; '';
}; };