diff --git a/doc/2-admin.mkd b/doc/2-admin.mkd index 5f979c2..d250077 100644 --- a/doc/2-admin.mkd +++ b/doc/2-admin.mkd @@ -140,15 +140,22 @@ for the special usernames or remove the description line. #### custom hooks -You can supply your own, custom, hook scripts if you wish. Just put a -**tested** hook script in `hooks/common` of your gitolite clone (as -distributed, there are only two files there). For each file in that -directory, a symlink pointing to it will be placed in the `hooks/` -subdirectory of every *new* repo created. +You can supply your own, custom, hook scripts if you wish. Install gitolite +as usual, then: -If you added any new hooks and wish to propagate them to *existing* repos as -well, just run gl-easy-install (or gl-setup, if you installed directly on the -server) once. + * if you installed using "from-client" method (gl-easy-install): + * go to the gitolite *source* clone from which you did the original + install + * add your new hook into "hooks/common" + * run src/gl-easy-install with the same arguments as you ran the first + time + * if you installed using one of the other methods + * go to ~/.gitolite/hooks/common on the server and put your new hook + there + * now run "gl-setup" again + +You can use this procedure to install new hooks as well as to update hooks +that you had previously installed. **VERY IMPORTANT SECURITY NOTE: the `update` hook in `hooks/common` is what implements all the branch-level permissions in gitolite. If you fiddle with diff --git a/doc/install-transcript.mkd b/doc/install-transcript.mkd index 67093ed..71c97d1 100644 --- a/doc/install-transcript.mkd +++ b/doc/install-transcript.mkd @@ -85,6 +85,11 @@ because I'm not showing the actual "vi" session): Stopping sshd: [ OK ] Starting sshd: [ OK ] +**NOTE**: if the `AllowUsers` setting is completely missing from the sshd +config file, all users are allowed (see `man sshd_config`). You may prefer to +leave it that way -- your choice. I prefer to make the usernames explicit +because I'm paranoid ;-) + ----