Skip to content

rhildred/addGitUser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

addGitUser

add a user that can only access the server resources in their home directory through git over http

to run:

curl https://raw.github.com/rhildred/addGitUser/master/addGitUser | bash -s

to create another repository under the same account:

curl https://raw.github.com/rhildred/addGitUser/master/addRepo | bash -s repositoryName

started with:

an account set up under cpanel that I can ssh to, mod_auth_digest installed and activated

in detail:

  • make basic directories git and rails_apps ... also a tmp1 directory that we will delete

  • make the bare first repo

  • clone working copy in to tmp1

  • write the post-receive hook

  • make the .htaccess with the security and the rewrite rule

  • make the .htaccess to run our script

  • make our script

  • set the rest of the userdir permissions

  • commit everything and check out into the rails_apps work tree

  • link in to work tree

  • clean up tmp1 directory

About

add a user that can only access the server resources in their home directory through git over http

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages