Now it's time to create the virtual repository. The permissions on various parts of repository should be set up very carefully, so there is a special script for that purpose, called `init-cvs-repository.sh'.
It takes the following command-line arguments:
init-cvs-repository.sh [-v] /path/to/repository [cvs cvsadmin]
The only required argument is the `/path/to/repository', which specifies the path to the repository to be created. This directory must not exist prior to its creation: this is done to protect the already-setup directory from occasional breaking the permissions apart.
The script executes certain sequence of simple commands: mostly `chmod', `chown', and `touch'. The `cvs init' is executed also. If you want to see which commands exactly are executed by `init-cvs-repository.sh', add the `-v' (verbose) option.
The script uses two distinct names for the ordinary CVS user and CVS administrator. Each of those names specify both the account and the group. The default names are `cvs' and `cvsadmin'. You can specify another names as command line arguments. For example, this command line:
init-cvs-repository.sh /repos1 repos1user repos1admin
creates the repository in the `/repos1' directory, with account and group both called `repos1user', and with account and group both called `repos1admin'.
Go to the first, previous, next, last section, table of contents.