Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in dev_setup.sh: chown at line 226 #2092

Closed
Nemirtingas opened this issue Apr 11, 2019 · 2 comments · Fixed by #2094
Closed

Error in dev_setup.sh: chown at line 226 #2092

Nemirtingas opened this issue Apr 11, 2019 · 2 comments · Fixed by #2094

Comments

@Nemirtingas
Copy link

When building a fresh install, just after git clone and doing bash dev_setup.sh:
At line 226, the chown is wrong as it assumes that the user's group is the same as his name.
My user is different from my group so I changed this line:
$SUDO chown -R $USER:$USER /opt/mycroft
to
$SUDO chown -R $USER: /opt/mycroft

which will make chown use the user's primary group on Ubuntu.

@forslund
Copy link
Collaborator

Thanks for letting us know.

In the other place where we chown we use:

setup_user=$USER
setup_group=$( id -gn $USER )

To determine the correct group. would this work in your case as well?

@Nemirtingas
Copy link
Author

Yes, it should fix this bug :), thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants