esmero / archipelago-deployment

Archipelago Commons Docker Deployment Repository
33 stars 15 forks source link

autodeploy.sh script doesn't cover macOS permissions #240

Closed aksm closed 1 year ago

aksm commented 1 year ago

What?

The current autodeploy.sh script doesn't take into account that the solrcore and iiifcache folders on macOS need current user permissions.

DiegoPino commented 1 year ago
if [ "$(uname)" == "Linux" ]; then sudo chown -R 8183:8183 persistent/iiifcache &&
sudo chown -R 8983:8983 persistent/solrcore; fi

Something like that? uname gives you Darwin on any MacOS but assuming we always assume Linux subsystem in Windows too right? If not we we can compare !== "Darwin"

aksm commented 1 year ago

Resolved by 5c55cd317710cdaad5e8d96141227ba4ddb54ebe.