How to use to make a file executable on Openshift

2019-09-07 05:27发布

The original poser is found here. I want to ensure my index.cgi is set to 755, even afer i push files to git. This is not happening and the file permission , based on the umask i understand is getting set to 700.

I am unable to create the post-update script on the server , which is to be kept at openshift/hooks location, due to the set permissions.

So i tried using action hooks to do the job.

I created a file named stop in my action hooks local folder. Following this i pushed my index file to the server.

My index file still shows permission as 700. How can i resolve this ?

1条回答
We Are One
2楼-- · 2019-09-07 06:07

Try updating the permissions in git.

 git update-index --chmod=<permissions>   <your_file>
查看更多
登录 后发表回答