I'm trying to automate the process of pushing from a server to Github as a way of tracking Geoserver changes, and pulling from Github as a way of deploying new work. The push side works fine, but if I create a new layer in Geoserver, and then try to edit that elsewhere and pull changes back to the server it fails.
- Publish new layer in geoserver
- Push that from the server, pull it to my own machine
- Make any changes - e.g. adding height.ftl or description.ftl
- Push that from my machine, try to pull it back on the server.
At this point, I get a "permission denied" error, and the issue seems to be that Geoserver isn't giving these directories group write permissions; specifically it's setting:
chmod g+w fixes this, but I'm trying to get the process more automated. Is there a way to set the permissions with which Geoserver creates these directories?
[adding with later edit: it occurred to me to check the
umask settings, and that seems to be set to
0002 for all of my user account, the user Geoserver runs as, and the user Github runs as. They're also all members of each others' groups. If I've understood this correctly, it means the server's default behaviour is to give group write permission to new directories and files, so Geoserver must be explicitly withholding that permission.]