Directories declarations consist of a number of directories to be
created. Directories and files may also be checked and created using
the touch
option in the files
actions. See files.
The form of a declaration is:
directories: classes:: /directory mode=mode owner=uid group=gid define=classlist syslog=true/on/false/off inform=true/on/false/off |
For example
directories: class:: /usr/local/bin mode=755 owner=root group=wheel
The form of the command is similar to that of files
but this
command is only used to create new directories. Valid options are
mode
, owner
, group
and are described under
files
See files. This interface is only for convenience.
It is strictly a part of the `files' functionality and is performed
together with other `files' actions at run time.
The creation of a path will fail if one of the links in the path is a plain file or device node. A list of classes may optionally be defined here if a directory is created.