test
[hcoop/zz_old/ikiwiki] / MemberManual / UsingDomtool.mdwn
CommitLineData
ee25310d 1#pragma section-numbers off\r
2\r
3This is the chapter of the MemberManual that describes the bare minimum that you need to know concerning our use of DomTool. This is meant to be a very brief HCoop-specific overview, compared to the DomTool/UserGuide page, which is more thorough.\r
4\r
5[[TableOfContents]]\r
6\r
7= Configuration files =\r
8\r
9Domtool has user-specified configuration files that determine how to set up a domain or subdomain. Each file contains all of the information needed to configure a single domain.\r
10\r
11If you want Domtool to process these files automatically, then place them in the {{{~/.domtool}}} directory. If you are just testing out a domain temporarily, the configuration files may be placed anywhere.\r
12\r
13By default, this {{{~/.domtool}}} directory is actually a symlink to the {{{~/.public/.domtool}}} directory. This makes your configuration files readable by anyone, but writable only by you. If you want to make them private, then do the following.\r
14\r
15{{{\r
16rm ~/.domtool\r
17mkdir ~/.domtool\r
18fs setacl ~/.domtool domtool read\r
19# Do the following two commands if you have any files in ~/.public/.domtool\r
20mv ~/.public/.domtool/* ~/.domtool\r
21rmdir ~/.public/.domtool\r
22}}}\r
23\r
24= Running domtool =\r
25\r
26In order to activate or test a domain, you must run the {{{domtool}}} command.\r
27\r
28== Testing your configuration ==\r
29\r
30Running the following command tests your configuration file (here called "MYDOMAIN") for errors. Make sure to give the full path to the configuration file, unless you are currently in the same directory as the configuration file.\r
31\r
32{{{\r
33domtool -tc ~/.domtool/MYDOMAIN\r
34}}}\r
35\r
36The "-tc" argument means "type-check".\r
37\r
38== Activating your configuration ==\r
39\r
40In order to make your changes go live, you need to run domtool without the "-tc" argument, as follows.\r
41\r
42{{{\r
43domtool ~/.domtool/MYDOMAIN\r
44}}}\r
45\r
46= Further instruction =\r
47\r
48The intention of this page was to give you a very quick overview of the {{{domtool}}} command. To learn about how to create working configuration files, as well as brag to your friends about Domtool's excellent design, it is essential that you read the [:DomTool/UserGuide:Domtool User Guide].\r