Announcement

Collapse
No announcement yet.

Using CPanels version of git

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using CPanels version of git

    cpanel, git, shell

  • #2
    It looks like cPanel is now coming with git, starting with 11.36. Does anyone know if there are any instructions on how to make this available for users if CageFS and/or PHP Selector are installed on the server?



    # /usr/local/cpanel/3rdparty/bin/git --version
    git version 1.7.11.3

    Comment


    • #3
      I was just wondering the same thing.

      Id like to give my customers git support.

      1) Are there any security issues with git? (Using CageFS)
      2) Should we just enable that git that comes with cPanel in CageFS, or use yum install git-cpanel to install that version? What would the difference be?
      3) How to enable any of above for CageFS.

      Thanks in advance.

      /E

      Comment


      • #4
        Id also like to know actually. Was considering enabling this feature on our servers aswell but feel a bit 2 sided with respect to security.
        Hostking | Since 2013 | Web Hosting | WordPress Web Hosting

        Comment


        • #5
          I checked the cPanel forums once more, and if it helps, the binary is located at:

          /usr/local/cpanel/3rdparty/bin/git

          Comment


          • #6
            Finally figured it out. If you call git with the full path, it seems to work just fine. I ran it while logged into a users account via SSH. and it worked.

            Comment


            • #7
              Great seems this all worked for me aswell. Thanks
              Hostking | Since 2013 | Web Hosting | WordPress Web Hosting

              Comment


              • #8
                git not found command

                add the RPM to the CageFS skeleton, and then force a rebuild to ensure its allowed for all users.

                cagefsctl --addrpm git

                cagefsctl --force-update
                Hostking | Since 2013 | Web Hosting | WordPress Web Hosting

                Comment

                Working...
                X