Skip to content

Commit

Permalink
I154 (#156)
Browse files Browse the repository at this point in the history
* create user during install

* Add paperpi to spi, gpio groups
  • Loading branch information
txoof authored Mar 13, 2024
1 parent 81fac69 commit b76c570
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ function create_user {
useradd -m paperpi
echo "Created user 'paperpi'"
fi
echo "Adding paperpi to the gpio and spi groups"
usermod paperpi -a -G spi,gpio
fi

if [ $PURGE -gt 0 ]
Expand Down Expand Up @@ -526,6 +528,7 @@ create_venv
install_executable
install_config
install_unit_file
create_user
enable_spi
edit_config
finish_install
Expand Down

0 comments on commit b76c570

Please sign in to comment.