Greetings! My first mirror project is destined to be a wedding present for a friend of my wife. It’s been a steep learning curve, but I’m happy with the result. However, this situation presents a challenge for me, the Linux novice.
I would like to be able to get the mirror to update without VPN access to the mirror itself. I’m not sure of their wireless network, but I don’t think I can reliably find its IP address and it’s unknown whether or not their home network will allow VPN connections anyway. So my thought was I could create a Git repository that would represent the installation of the mirror on their RPI. As I push code to master, I would like the Pi to update itself and install new modules, upgrade code and so forth.
I think this will do the trick, but Git and I have a mutually hostile relationship. If I fork Mich’s code to my own account, I can update it without interfering with the rest of you guys. If I then fork every module that I wish to install and clone from these forks, I can update any module in my repository. I am just now investigating submodules in Git and this may be the way to go. But I’m not sure.
Keeping the modules updated would be a simple cron job that I would run at 2 AM every day. It would do a pull from my forks and update to new code whenever I pushed to my fork.
Am I missing anything? Is there an easier solution? Is this actually a solution? Can anyone explain submodules to me in a way that 1) I can understand, and 2) I can implement?