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

sudo missing from example update script in wiki #1823

Closed
stephenobrochta opened this issue May 19, 2021 · 4 comments
Closed

sudo missing from example update script in wiki #1823

stephenobrochta opened this issue May 19, 2021 · 4 comments
Labels
support Something isn't working with the users setup

Comments

@stephenobrochta
Copy link

Thanks for maintaining this software.

https://github.com/UnchartedBull/OctoDash/wiki/Update#in-app-update

The code for the bash script is missing sudo
instead of dpkg -i /tmp/octodash.deb ...
sudo dpkg -i /tmp/octodash.deb

@stephenobrochta stephenobrochta added the support Something isn't working with the users setup label May 19, 2021
@UnchartedBull
Copy link
Owner

That script shouldn't include sudo since it will be called from OctoDash itself (so there is no way to enter a password). As mentioned in the text below that passwordless sudo needs to be enabled for this to work.

@stephenobrochta
Copy link
Author

I must be confused about something in this process. With passwordless sudo enabled, the update script hangs as described in issue 1211. I assumed this was because dpkg must be run as root and calling the script from octodash is executing the script without superuser privilege. After adding sudo, from the command line I can execute the script without a password.

@UnchartedBull
Copy link
Owner

It is definitely not needed for OctoPi and Raspbian (since many people ran the update just fine without sudo in that line). What OS are you running?

@stephenobrochta
Copy link
Author

I realize it was my problem.

My syntax was wrong for passwordless sudo. The only reason the update script worked without password prompt is the password timeout had not occurred. Thank you for responding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Something isn't working with the users setup
Projects
None yet
Development

No branches or pull requests

2 participants