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() { create_directories() {
#shellcheck disable=SC2016 #shellcheck disable=SC2016
_loop_wrapper "$1" \ _loop_wrapper "$1" \
'Creating directory ${x}' \ 'Creating directory $(echo $x | cut -d"," -f1)' \
"mkdir -p $user_home/\${x}" '
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!" info "Done!"
} }

View File

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

View File

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