diff --git a/setup b/setup index 3bcd7f7..d9fd217 100755 --- a/setup +++ b/setup @@ -41,3 +41,11 @@ cd $ONBOARD_ROOT bash etc/scripts/platform/debian/setup.sh $ONBOARD_ROOT $ONBOARD_USER bash modules/openvpn/etc/scripts/platform/debian/setup.sh $ONBOARD_ROOT $ONBOARD_USER + +if id -u pi 2> /dev/null; then # DO not show missing user error here... + if id -u pi $ONBOARD_USER > /dev/null; then # ...but so show it here! + echo 'Disabling password authentication for user "pi" (Raspberry PI).' + echo "We have the user '$ONBOARD_USER' instead." + passwd -d pi + fi +fi