munki / mwa2

Version 2 of MunkiWebAdmin
Other
157 stars 37 forks source link

adding sync to remote repo #37

Open darshannnn opened 5 years ago

darshannnn commented 5 years ago

Edited utils.py and settings to enable auto sync (git pull and git push) to remote repo.

gregneagle commented 5 years ago

Will you also write documentation for this setting and feature?

darshannnn commented 5 years ago

I have put up a docker image with working sync and LDAP at: https://hub.docker.com/r/darshannnn/mwa2-ldap

It has instructions under, 'Sync to remote repo:' Do you want me to copy that to mwa2 README.md?

I have also added some comments above 'SYNC_REMOTE_REPO', in settings.py, but I noticed some typos there, if you could please update the comments as follows:

# Variable for disabling/enabling syncing changes from the repository mwa2 uses, to the remote git server # For sync to work, munki_repo/.git/config should have, 'branch' and 'remote' configured. # To test you should be able to manually run, 'git pull' and git 'git push' from the repo mwa2 is using

Happy for you to change the comment, so that it makes more sense.