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

Check if Zigbee2MQTT is running in update.sh #21494

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Conversation

Toniob
Copy link
Contributor

@Toniob Toniob commented Feb 20, 2024

Hi,

I’m running Zigbee2MQTT as an unprivileged user, and I don’t want to give it sudo rights. I can’t use the update.sh script the way it was because it asked me for the sudo password.

I’ve changed it so now it checks if zigbee2mqtt is currently running. If it’s not, then it doesn’t try to stop the service, and it will not try to restart it.

That way, I’ll be able to use it (i’ll just stop and start it manually), and for people using sudo, it doesn’t change anything.

@Koenkk Koenkk merged commit 8b69443 into Koenkk:master Feb 20, 2024
8 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Feb 20, 2024

Thanks!

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.

None yet

2 participants