From 603125326abde4a4075c239b2ee22fdb4ecb3037 Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Tue, 10 Mar 2020 12:53:48 -0500 Subject: [PATCH] add pi user to ssh group if it exists --- install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install b/install index 55a5526..1be1ca5 100755 --- a/install +++ b/install @@ -347,6 +347,11 @@ cat << EOF > ${ioniceCron} EOF chmod 600 ${ioniceCron} +if getent passwd pi > /dev/null; then + echo "Adding pi user to ssh group ..." + usermod -a -G ssh pi +fi + # remove networkmanager and dhcpcd5 then configure networkd if [ ${version} -gt 4 ]; then nic="eth0"