ZM Event Notification Server Installation Questions

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
zm_123
Posts: 4
Joined: Thu Dec 17, 2020 2:13 pm

ZM Event Notification Server Installation Questions

Post by zm_123 »

Hi All,
I'm new to Git and would like to get your advice on how to properly installing zmeventnotification from Git. I'm using this guide
https://zmeventnotification.readthedocs ... stall.html. It says
To clone the latest stable release:

Code: Select all

git clone https://github.com/pliablepixels/zmeventnotification.git
cd zmeventnotification
# repeat these two steps each time you want to update to the latest stable
git fetch --tags
git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
Questions:
1. Does it matter in which directory I run the git clone command?
2. For a new installation, do I need to run the last 2 commands (git fetch and git checkout)?
3. To start the installation process, I assume that I need to run ./install.sh located in the /zmeventnotification directory, correct?

Please educate me. Many thanks.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: ZM Event Notification Server Installation Questions

Post by Magic919 »

You should run the git clone somewhere convenient. I have created a directory called git-repos and use that.

Wherever you run the command, you’ll get a new suitably named sub-directory with the downloaded code inside.

That’s all you need to start

Then run the install script. Do read what it tells you as you run it, just in case something needs changing.
-
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: ZM Event Notification Server Installation Questions

Post by Magic919 »

PS. Post ZMES queries under Mobile section for better response.
-
zm_123
Posts: 4
Joined: Thu Dec 17, 2020 2:13 pm

Re: ZM Event Notification Server Installation Questions

Post by zm_123 »

Thanks for your quick response, Magic919. I really appreciate your help.

It is not quite clear from your answer whether I need to run the last 2 commands (git fetch and git checkout) for a new installation. I have never done anything like this before and am just afraid that I might accidentally break something else.

Eventually, I would like to use MQTT, another completely new thing to me, to receive the notifications. So I have lots of learning ahead of me and hope that you could continue to teach me.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: ZM Event Notification Server Installation Questions

Post by Magic919 »

If you just do the git clone you are ready to go.

I've never run the other git commands mentioned. It's possible to do all sorts of things using git, that I have no need of.

I start with the git clone <repo location>

Then later on I cd to the zmeventnotification directory and run a git pull.

With some repositories this might cause you to pull the latest code, which could be more risky. With something like ZMES I can't see that making much difference. V6.06 which is what I currently run seems fine.
-
zm_123
Posts: 4
Joined: Thu Dec 17, 2020 2:13 pm

Re: ZM Event Notification Server Installation Questions

Post by zm_123 »

Image
Thanks! Trying to get up to speed with Git, I got the above image from here: https://stackoverflow.com/questions/345 ... rom-origin
Like you wrote, a clone followed by a pull, seems to make more sense to me since both end up at the "workspace" in the picture. A fetch only ends in the "local repository".
Post Reply