To run preinstall and postinstall scripts

This example demonstrates how to:

{
    "PreInstalls":
    {
        "${WORK_DIR}/preinstall.sh": "target_copy"
    },
    "PostInstalls": {
        "${WORK_DIR}/postinstall.sh": "target_copy"
    }
}

The preinstall.sh script is used in the example below:

#!/bin/sh
echo "nameserver.nvidia.com" >> /etc/resolv.conf

The postinstall.sh script is used in the example below:

#!/bin/sh
sed -i "s/nameserver.nvidia.com//g" /etc/resolv.conf