Adding created user to the wrolpi group so they can interact with wrolpi files and logs.

This commit is contained in:
Roland 2025-03-13 15:06:49 -06:00
parent b43677e674
commit 28ec996999
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -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