Hello,
Could anyone make a short tutorial on how to install Corebos under GIT version control? Perhpas there is a thread already but I haven't fond it.
Thank you.
Paul
Yes, it is the same. Git knows how to convert the latter into the former.
Related question about
GIT. As I understand it doing a
git pull will update my copy of CoreBOS. However since I do have some code customisations I would like to be able to see what the update will be before applying those to my repository so that it doesn't overwrite anything. What is the proper
GIT command for that? I tried
git pull --dry-run but that didn't tell me specifically which files would be changed/modified/updated, it only showed me the following:
Code:
Serv> git pull --dry-run
remote: Counting objects: 18, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 18 (delta 15), reused 4 (delta 1), pack-reused 0
Unpacking objects: 100% (18/18), done.
From https://github.com/tsolucio/corebos
050633e..eae8083 master -> origin/master
Thank you.
I have another comment/question regarding updating CoreBOS via git. Each time I do a git pull the new created files will have the permissions of the account I am git pulling from. In my case, it's the root account. This is obvious, but it does leave me with having to re-apply the proper permissions each time I do an update. Isn't there a way to automate this?
Can't you pull them as the user they should belong to?
AFAIK git does not control in any way the user assignment so I would suggest creating a small bash script to do the assignment for you, after all it is just one command.... :-)
No, I can't pull them using the http user as that is the user they are supposed to belong to and even if I did, although the ownership would be fine, the permissions would still be incorrect or at least not totally accurate. Synology only enables the root and admin accounts for ssh and in order to enable other users I would need to modify the /etc/passwd file which I would rather not do.
Indeed, it's not git who controls the user assignment it's the account from which the pull command is being made from as far as I understand.