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

‘service zigbee2mqtt upgrade’ don't upgrade to last release #6

Open
tebra-jl opened this issue Oct 12, 2021 · 1 comment
Open

Comments

@tebra-jl
Copy link

I thing there is something missing in ‘service zigbee2mqtt upgrade’ because it don’t do ‘git checkout’ and ‘git pull’ commands. So the result is installation of the already existing version and not a upgrade.

@MArabie
Copy link

MArabie commented Jan 20, 2022

Agreed, I manually went to the ZIGBEE2MQTT_DIR=/opt/zigbee2mqtt and ran git pull then ran the service zigbee2mqtt upgrade. This built the updated pull.
The post_install.sh does a git clone, so you get the latest version as of installation.
I think @tebra-jl is correct and there should just be git pull added to line 33/34 of /usr/local/etc/rc.d/zigbee2mqtt.

I am not confident enough in my skills to do a pull request. I am on the latest zigbee2mqtt now. I can attempt modifying the script on the next update. If this issue is still open and it works, I will pull request then.

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

No branches or pull requests

2 participants