add pi user to ssh group if it exists

This commit is contained in:
Aaron Murray 2020-03-10 12:53:48 -05:00
parent 72282d9f18
commit 603125326a

View File

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