-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat Satellite
17.2. 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; eitherpre
orpost
- boolean
chroot
- Whether to run the script in the chrooted install location (recommended) or not.
Returns
The following return values are available for this method:
- int
id
- The ID of the added script