C
This commit is contained in:
@@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user