%PDF- %PDF-
Direktori : /data/old/etc/opt/eset/esets/scripts/ |
Current File : //data/old/etc/opt/eset/esets/scripts/license_warning_script |
#!/bin/sh # # ESETS license warning script # ---------------------------- # # For more information see: # man esets_daemon # # The following variables are provided: # # ESETS_LICENSE_ID # Identification number of a license. # # ESETS_LICENSE_PRODUCT_NAME # Product name appropriate to the license. # # ESETS_LICENSE_EXPIRATION_DATE # Date of license expiration. # # ESETS_LICENSE_DAYS_REMAINED # Days before license expiration. # Zero (0) means license expired. # # ESETS_LICENSE_FILE_NAME # File path where the license is stored. # # if [ "$ESETS_LICENSE_DAYS_REMAINED" = 0 ]; then MSG="Note that ESET Security may not protect your system because the following license has already expired:" else MSG="Note that the following license will expire in $ESETS_LICENSE_DAYS_REMAINED day(s):" fi /usr/sbin/sendmail -t -oi <<%% From: esets_daemon To: root Subject: license $MSG LICENSE ID: ${ESETS_LICENSE_ID} PRODUCT NAME: ${ESETS_LICENSE_PRODUCT_NAME} EXPIRATION DATE: ${ESETS_LICENSE_EXPIRATION_DATE} FILE NAME: ${ESETS_LICENSE_FILE_NAME} %%