Hi.
I try to create and install a patch with pkgadd and a class
installation script for backing-up the original files. But not work.
The cp of the files is done without start the class action script.

The proto file:

ksh > cat indbproto
i i.indb
i r.indb
i pkginfo
i request
i preinstall
d none $PRODUCT_ROOT 0755 $Owner $Group
d none $PRODUCT_ROOT/COMMON 0755 $Owner $Group
d none $PRODUCT_ROOT/CRONPROC 0755 $Owner $Group
f indb $PRODUCT_ROOT/ReleaseNotes_INDB=/sa4/ipnet/tmp/P4/INDB/ReleaseNotes_INDB
755 $Owner $Group
[...]

This the test class action installation script:

ksh > cat i.indb

#!/bin/sh

echo "HELLO CLASS!!"
while read src dest; do
echo $src $dest
cp -f $src /tmp
done

exit 0


Instead the remove class action script work fine:

ksh > cat r.indb

#!/bin/sh

echo "HELLO CLASS!!"
while read src dest; do
echo "src=${src} dest=${dest}"
cp -f $src /tmp || exit 2
rm -f $src
done

exit 0


Can you help me?

Thanks