Making Bash Scripts Automatically Executable in Open OnDemand

Currently, I have 2 passenger sinatra apps that display the output of a bash script. However, every time I recreate the app, I have to set the bash script as an executable. Not all users have permission to do this, so I want this done automatically.
I have tried making the script executable in the git repo, but it is still not working.

Any suggestions on how to get this done?
Thanks!

That seems odd. Like git should preserve file permissions like that IIRC. In any case, I’d suggest a simple ansible playbook to install the app and change file permissions. Ansible has a little bit of a learning curve, but if you know YAML you’re already half the way there.

I figured it out. I had to make the file executable locally instead of running

git update-index --chmod=+x

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.