Procedure scripts are executed as uid=root and gid=other.
Each installation procedure script must use the
installf(ADM)
command
to notify
pkgadd(ADM)
that it will add or modify a pathname.
After all additions or modifications are complete, this
command should be invoked with the -f option to indicate all
additions and modifications are complete.
(See the
installf(ADM)
manual page
and the
case studies
for details and examples.)
Each removal procedure script must use the
removef(ADM)
command to
notify
pkgrm(ADM)
that it will
remove a pathname.
After removal is complete, this
command should be invoked with the -f option to indicate all removals
have been completed.
(See the
removef(ADM)
manual page
and the
case studies
for details and examples.)
NOTE:
The
installf(ADM)
and
removef(ADM)
commands must be used
for the following reasons.
If a procedure script physically removes an object from the system, the
system's contents database still contains an entry for that object until
the
removef(ADM)
command is used to remove the entry.
Similarly, if a
procedure script places an object on the system, it will not be
registered in the contents database until the
installf(ADM)
command is used
to register the object.