Ce contenu n'est pas disponible dans la langue sélectionnée.
17.4. Method: addScript
Description
Add a pre or post script to a kickstart profile.
Parameters
The following parameters are available for this method:
- string
sessionKey - string
ksLabel- The kickstart label to add the script - string
name- The kickstart script name - string
contents- The full script to add - string
interpreter- The path to the interpreter to use e.g./bin/bash; an empty string enables the kickstart default interpreter - string
type- The type of script; eitherpreorpost - boolean
chroot- Whether to run the script in the chrooted install location (recommended) or not. - boolean
template- Enable templating using cobbler - boolean
erroronfail- Whether to throw an error if the script fails or not
Returns
The following return values are available for this method:
- int
id- The ID of the added script