Skip to content

Commit

Permalink
remove extra user in id command
Browse files Browse the repository at this point in the history
  • Loading branch information
gderosa committed Dec 15, 2019
1 parent 0cae1e1 commit d6ae52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ 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!
if id -u $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
Expand Down

0 comments on commit d6ae52f

Please sign in to comment.