How to use to make a file executable on Openshift server after pushing it via git

血红的双手。 提交于 2019-12-13 04:59:36

问题


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:


Try updating the permissions in git.

 git update-index --chmod=<permissions>   <your_file>


来源:https://stackoverflow.com/questions/26609567/how-to-use-to-make-a-file-executable-on-openshift-server-after-pushing-it-via-gi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!