mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding created user to the wrolpi group so they can interact with wrolpi files and logs.
This commit is contained in:
parent
b43677e674
commit
28ec996999
1 changed files with 5 additions and 0 deletions
|
|
@ -15,5 +15,10 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Add the user created on startup to the wrolpi group.
|
||||
USER_NAME=$(getent passwd 1000 | cut -d: -f1)
|
||||
grep wrolpi: /etc/passwd || useradd -md /home/wrolpi wrolpi -s "$(command -v bash)"
|
||||
usermod -aG wrolpi ${USER_NAME}
|
||||
|
||||
# Do not run this script again.
|
||||
systemctl disable wrolpi-first-startup.service
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue