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

Allow API_USER to have access to commands #136

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dapowers87
Copy link

Without this line added, the API_USER account cannot do things like enable/disable the beeper

Summary of Changes

I added in a line to the entrypoint.sh that allows the API_USER to issue commands. This was the workaround fix I made on for my own uses. The sample uspd.users file mentions how instcmds works here

Why is this change being made?

This is needed in order to have Home Assistant do commands such as enable/disable the beeper.

How was this tested? How can the reviewer verify your testing?

Without this change, I got an access denied message when trying to run commands. I replaced the original entrypoint.sh with this change and created a new docker image on top of the instantlinux/nut-upsd and supplanted my new entrypoint.sh. I was able to issue commands after that.

Completion checklist

  • The pull request is linked to all related issues
  • This change has unit test coverage
  • Documentation has been updated
  • Dependencies have been updated and verified

Without this line added, the API_USER account cannot do things like enable/disable the beeper
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 this pull request may close these issues.

1 participant