Using git with Jailkit

Discussion in 'Installation/Configuration' started by mattltm, Jul 14, 2016.

  1. mattltm

    mattltm Member

    I'm a git noob and am trying to setup a repo for one of my sites.
    In the past I have just needed the /web dir so have ran `git init` inside /web and everything has worked. Now, the project I am working on has files in /web and /private so I figure that I need to run `git init`inside the /var/www/clients/client1/web12/ directory and add the folders that I need to the repo.
    The only problem is that I can't write anything to that dir because of Jailkit so my question is, how do I tell Jailkit to allow me to create a .git directory?
  2. till

    till Super Moderator Staff Member ISPConfig Developer


    chattr -i /var/www/clients/client1/web12

    to remove the folder protection of the web root.
  3. mattltm

    mattltm Member

    That works prefect.

    Thanks Till :)

Share This Page