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.
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.