Page 1 of 1

update by git on curl'ed installation

Posted: Wednesday 16 January 2019 15:24
by AllesVanZelf
Hello,
Is it possible to upgrade domoticz using "git pull" and "make" if I first installed domoticz by: "curl -L https://install.domoticz.com | sudo bash".
on my raspberry pi?
If I try this (after I made a backup) I get an error message: "fatal: Not a git repository (or any of the parent directories): .git".
Is there a way to go to git?

Re: update by git on curl'ed installation

Posted: Thursday 17 January 2019 0:26
by waaren
AllesVanZelf wrote: Wednesday 16 January 2019 15:24 Hello,
Is it possible to upgrade domoticz using "git pull" and "make" if I first installed domoticz by: "curl -L https://install.domoticz.com | sudo bash".
on my raspberry pi?
No this not possible. git pull is used to get your local repository up to date with the latest version. But if you only installed domoticz you don't have a repository. In fact you don't have source files at all. Start with checking out a repository. git command to do that is clone.
Is there a way to go to git?
git

I recommend to read this and this before continuing

Re: update by git on curl'ed installation

Posted: Thursday 17 January 2019 11:42
by AllesVanZelf
So, the best option would be to make a new install using git.

Re: update by git on curl'ed installation

Posted: Thursday 17 January 2019 15:49
by waaren
AllesVanZelf wrote: Thursday 17 January 2019 11:42 So, the best option would be to make a new install using git.
No. An installed domoticz environment is something different than a development environment.
Leave your domoticz installation where it is and create a new directory (preferable on a different PI) where you create your repository using git clone to develop and/or make.

Re: update by git on curl'ed installation

Posted: Thursday 17 January 2019 16:18
by AllesVanZelf
Building from source isn't the same as building for development purposes in my opinion. Is that what you meant?
I'm working with linux for a lot of years now, and building from source gives you the opportunity to build the software as you want and independent from package builders choices.
Is domoticz from git repository different?

Re: update by git on curl'ed installation

Posted: Thursday 17 January 2019 16:37
by waaren
AllesVanZelf wrote: Thursday 17 January 2019 16:18 Building from source isn't the same as building for development purposes in my opinion. Is that what you meant?
I'm working with linux for a lot of years now, and building from source gives you the opportunity to build the software as you want and independent from package builders choices.
Is domoticz from git repository different?
As far as I see it the environment for building from source is equal to the development environment.
When you do not change anything in that environment you just build from source and if you want to change anything to one or more of sources and then build you are developing. For both scenarios you start with getting the sources and makefiles. For domoticz you will find them at https://github.com/domoticz/domoticz.git and you get them using git clone