Ignore:
Timestamp:
01/10/2021 04:15:58 PM (9 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
10.1, 11.0, ken/refactor-virt, lazarus, qt5new, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
d186c30
Parents:
927658a5
Message:

Add note about using the daemon; fix $HOME of git user

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24099 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/gitserver.xml

    r927658a5 rdc905ac  
    7171     
    7272<screen role="root"><userinput>install -o git -g git -dm0700 /home/git/.ssh &amp;&amp;
    73 install -o git -g git -m0600 /dev/null /home/git/.ssh/authorized_keys
    74 </userinput></screen>
     73install -o git -g git -m0600 /dev/null /home/git/.ssh/authorized_keys</userinput></screen>
    7574
    7675      <para>
     
    293292        repository is to be found. This can be achieved by creating a
    294293        configuration file named <filename>/etc/sysconfig/git-daemon</filename>.
    295         This configuration file will be imported if it exists. It can
    296         look like:</para>
     294        This configuration file will be imported if it exists, meaning it is
     295        optional. The file can look like:</para>
    297296<screen revision="sysv">
    298297# Begin /etc/sysconfig/git-daemon
     
    354353        </itemizedlist>
    355354      </para>
     355
     356      <para>
     357        After starting the daemon, unauthenticated users can clone exported
     358        repositories by using
     359      </para>
     360<screen role="nodump"><userinput>git clone git://gitserver/project1.git</userinput></screen>
     361
     362      <para>
     363        As the basedir is <filename class="directory">/srv/git</filename> by
     364        default (or set to a custom value in the config), <application>git</application>
     365        interprets the incoming path (/project1.git) relative to that base
     366        directory so that the repository in <filename class="directory">/srv/git/project1.git</filename>
     367        is served.
     368      </para>
    356369     
    357370    </sect3>
Note: See TracChangeset for help on using the changeset viewer.