From b76c57040f33fc6ce74a2169c14e03ae2406d9ea Mon Sep 17 00:00:00 2001 From: Aaron Ciuffo Date: Wed, 13 Mar 2024 20:21:50 +0100 Subject: [PATCH] I154 (#156) * create user during install * Add paperpi to spi, gpio groups --- install/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/install.sh b/install/install.sh index dc5afc2..e6dcbf0 100755 --- a/install/install.sh +++ b/install/install.sh @@ -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 ] @@ -526,6 +528,7 @@ create_venv install_executable install_config install_unit_file +create_user enable_spi edit_config finish_install