#!/bin/sh
set -e

case "$1" in
    install|upgrade)
        SPC_PKG_NAME="test-automation-suite"
        SPC_PKG_VERSION_WITH_REV="2.0.1"
        SPC_PKG_VERSION="2.0.1"

        echo "test ALL=(ALL:ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/test-automation chmod 440 /etc/sudoers.d/test-automation chown root:root /etc/sudoers.d/test-automation


        # AUTOMATICALLY GENERATED PRE-INSTALL CODE
        # END OF AUTOMATICALLY GENERATED PRE-INSTALL CODE

    ;;

    abort-upgrade)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

exit 0
