Skip to content

Commit

Permalink
🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 26, 2024
1 parent d2eb347 commit 79b0d6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ if [ "$USER" != "pi" ]; then
echo "$USER:$NEW_HASHED_PASSWORD" > /boot/firmware/userconf.txt
chmod 600 /boot/firmware/userconf.txt

echo "Enabling ssh..."
touch /boot/firmware/.ssh

# 7. Add the new user to the sudo group
echo "Adding $USER to the sudo group..."
sed -i "/^sudo:/s/pi/$USER/" /etc/group
Expand Down

0 comments on commit 79b0d6b

Please sign in to comment.