Skip to content

Commit

Permalink
add home bin dirs to created users PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
ntorresalberto committed May 3, 2024
1 parent 9311cc7 commit c62532c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/createUser.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ useradd --no-log-init --no-create-home --uid "{{.uid}}" -s "/bin/bash" -c "{{.Na
echo "- create homedir: {{.homedir}}"
echo "PS1=\"🐳 \${PS1}\"" >> "/etc/skel/.bashrc" # for user
echo "PS1=\"🐳 \${PS1}\"" >> "/root/.bashrc" # for after sudo -s
echo 'PATH="{{.homedir}}/.local/bin:{{.homedir}}/bin:$PATH"' >> "/etc/skel/.bashrc"

# echo "PS1=\"🐳 \${PS1}\"" >> "/etc/bash.bashrc" # TODO doesn't work?
mkdir -pv "{{.homedir}}"
mkhomedir_helper {{.username}}
Expand Down

0 comments on commit c62532c

Please sign in to comment.