luca
/
bootstrapper
Archived
1
0
Fork 0

udpate directory handling, add zk

This commit is contained in:
Luca Bilke 2024-01-29 09:54:19 +01:00
parent f3f9133f85
commit f81b74466c
3 changed files with 24 additions and 15 deletions

View File

@ -151,8 +151,13 @@ create_user() {
create_directories() {
#shellcheck disable=SC2016
_loop_wrapper "$1" \
'Creating directory ${x}' \
"mkdir -p $user_home/\${x}"
'Creating directory $(echo $x | cut -d"," -f1)' \
'
dir=$(echo $x | cut -d"," -f1)
mod=$(echo $x | cut -d"," -f2)
sudo -u "$username" mkdir -p "${user_home}/${dir}"
chmod "${mod}" "${user_home}/${dir}"
'
info "Done!"
}

View File

@ -1,13 +1,16 @@
.cache
.config/zsh/configs
.config/X11/xsession.d
.local/state
.local/log
.local/share/applications
.local/share/gnupg
.local/bin/cron
Desktop
Documents
Downloads
Pictures/Screenshots
Videos
.cache,755
.config/zsh/configs,755
.config/X11/xsession.d,755
.config/gnupg,700
.local/state,755
.local/log,755
.local/share/applications,755
.local/bin/cron,755
.ssh,700
Desktop,755
Documents,755
Downloads,755
Pictures,755
Pictures/Screenshots,755
Videos,755
test,700

View File

@ -81,3 +81,4 @@ system-config-printer
odt2txt
lowdown
mpv
zk