Ignore tripwire emails if there are no violations

This commit is contained in:
Bob Mottram 2016-03-18 09:47:27 +00:00
parent b9e4dd8b3b
commit 9a4cacde23
7 changed files with 178 additions and 192 deletions

View File

@ -6,10 +6,6 @@
"\n .---. . .\n | | |\n |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.\n | | (.-' (.-' ( | ( )| | | | )( )| | (.-'\n ' ' --' --' -' - -' ' ' -' -' -' ' - --'\n\n Initial base install\n\nYour system is not yet installed. To complete the process run the\nfollowing commands, then enter your details.\n\n sudo su\n ${PROJECT_NAME} menuconfig\n\n": "", "\n .---. . .\n | | |\n |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.\n | | (.-' (.-' ( | ( )| | | | )( )| | (.-'\n ' ' --' --' -' - -' ' ' -' -' -' ' - --'\n\n Initial base install\n\nYour system is not yet installed. To complete the process run the\nfollowing commands, then enter your details.\n\n sudo su\n ${PROJECT_NAME} menuconfig\n\n": "",
"Using ssh public key:": "", "Using ssh public key:": "",
"Install failed. Press x to continue...": "", "Install failed. Press x to continue...": "",
"File not found /usr/local/bin/tox-bootstrapd": "",
"Account to run Tox's DHT bootstrap daemon": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.conf": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service": "",
"warning: creating initial user $username with well known password!": "", "warning: creating initial user $username with well known password!": "",
"info: killing leftover processes in chroot": "" "info: killing leftover processes in chroot": ""
} }

View File

@ -60,6 +60,7 @@
"Please plug in the OneRNG device": "", "Please plug in the OneRNG device": "",
"ERROR: Exim does not appear to have installed. $CHECK_MESSAGE": "", "ERROR: Exim does not appear to have installed. $CHECK_MESSAGE": "",
"Added onion site for ${onion_service_name}": "", "Added onion site for ${onion_service_name}": "",
"# Tripwire reports which have no violations don't need to be logged": "",
"ERROR: Dovecot does not appear to have installed. $CHECK_MESSAGE": "", "ERROR: Dovecot does not appear to have installed. $CHECK_MESSAGE": "",
"Unknown subkey usage: $GPG_KEY_USAGE": "", "Unknown subkey usage: $GPG_KEY_USAGE": "",
"Public key: $MY_GPG_PUBLIC_KEY": "", "Public key: $MY_GPG_PUBLIC_KEY": "",
@ -97,10 +98,6 @@
"Note that there's a usability/security trade-off made here.": "", "Note that there's a usability/security trade-off made here.": "",
"In order to allow git clone via http we don't redirect everything": "", "In order to allow git clone via http we don't redirect everything": "",
"should change /etc/nginx/sites-available/$GIT_DOMAIN_NAME to redirect everything over https.": "", "should change /etc/nginx/sites-available/$GIT_DOMAIN_NAME to redirect everything over https.": "",
"File not found /usr/local/bin/tox-bootstrapd": "",
"Account to run Tox's DHT bootstrap daemon": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.conf": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service": "",
"Your Tox node public key is": "", "Your Tox node public key is": "",
"tox onion domain: ${TOX_ONION_HOSTNAME}": "", "tox onion domain: ${TOX_ONION_HOSTNAME}": "",
"Your Tox node public key is: $TOX_PUBLIC_KEY": "", "Your Tox node public key is: $TOX_PUBLIC_KEY": "",

View File

@ -6,10 +6,6 @@
"\n .---. . .\n | | |\n |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.\n | | (.-' (.-' ( | ( )| | | | )( )| | (.-'\n ' ' --' --' -' - -' ' ' -' -' -' ' - --'\n\n Initial base install\n\nYour system is not yet installed. To complete the process run the\nfollowing commands, then enter your details.\n\n sudo su\n ${PROJECT_NAME} menuconfig\n\n": "", "\n .---. . .\n | | |\n |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.\n | | (.-' (.-' ( | ( )| | | | )( )| | (.-'\n ' ' --' --' -' - -' ' ' -' -' -' ' - --'\n\n Initial base install\n\nYour system is not yet installed. To complete the process run the\nfollowing commands, then enter your details.\n\n sudo su\n ${PROJECT_NAME} menuconfig\n\n": "",
"Using ssh public key:": "", "Using ssh public key:": "",
"Install failed. Press x to continue...": "", "Install failed. Press x to continue...": "",
"File not found /usr/local/bin/tox-bootstrapd": "",
"Account to run Tox's DHT bootstrap daemon": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.conf": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service": "",
"warning: creating initial user $username with well known password!": "", "warning: creating initial user $username with well known password!": "",
"info: killing leftover processes in chroot": "" "info: killing leftover processes in chroot": ""
} }

View File

@ -60,6 +60,7 @@
"Please plug in the OneRNG device": "", "Please plug in the OneRNG device": "",
"ERROR: Exim does not appear to have installed. $CHECK_MESSAGE": "", "ERROR: Exim does not appear to have installed. $CHECK_MESSAGE": "",
"Added onion site for ${onion_service_name}": "", "Added onion site for ${onion_service_name}": "",
"# Tripwire reports which have no violations don't need to be logged": "",
"ERROR: Dovecot does not appear to have installed. $CHECK_MESSAGE": "", "ERROR: Dovecot does not appear to have installed. $CHECK_MESSAGE": "",
"Unknown subkey usage: $GPG_KEY_USAGE": "", "Unknown subkey usage: $GPG_KEY_USAGE": "",
"Public key: $MY_GPG_PUBLIC_KEY": "", "Public key: $MY_GPG_PUBLIC_KEY": "",
@ -97,10 +98,6 @@
"Note that there's a usability/security trade-off made here.": "", "Note that there's a usability/security trade-off made here.": "",
"In order to allow git clone via http we don't redirect everything": "", "In order to allow git clone via http we don't redirect everything": "",
"should change /etc/nginx/sites-available/$GIT_DOMAIN_NAME to redirect everything over https.": "", "should change /etc/nginx/sites-available/$GIT_DOMAIN_NAME to redirect everything over https.": "",
"File not found /usr/local/bin/tox-bootstrapd": "",
"Account to run Tox's DHT bootstrap daemon": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.conf": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service": "",
"Your Tox node public key is": "", "Your Tox node public key is": "",
"tox onion domain: ${TOX_ONION_HOSTNAME}": "", "tox onion domain: ${TOX_ONION_HOSTNAME}": "",
"Your Tox node public key is: $TOX_PUBLIC_KEY": "", "Your Tox node public key is: $TOX_PUBLIC_KEY": "",

View File

@ -6,10 +6,6 @@
"\n .---. . .\n | | |\n |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.\n | | (.-' (.-' ( | ( )| | | | )( )| | (.-'\n ' ' --' --' -' - -' ' ' -' -' -' ' - --'\n\n Initial base install\n\nYour system is not yet installed. To complete the process run the\nfollowing commands, then enter your details.\n\n sudo su\n ${PROJECT_NAME} menuconfig\n\n": "", "\n .---. . .\n | | |\n |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.\n | | (.-' (.-' ( | ( )| | | | )( )| | (.-'\n ' ' --' --' -' - -' ' ' -' -' -' ' - --'\n\n Initial base install\n\nYour system is not yet installed. To complete the process run the\nfollowing commands, then enter your details.\n\n sudo su\n ${PROJECT_NAME} menuconfig\n\n": "",
"Using ssh public key:": "", "Using ssh public key:": "",
"Install failed. Press x to continue...": "", "Install failed. Press x to continue...": "",
"File not found /usr/local/bin/tox-bootstrapd": "",
"Account to run Tox's DHT bootstrap daemon": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.conf": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service": "",
"warning: creating initial user $username with well known password!": "", "warning: creating initial user $username with well known password!": "",
"info: killing leftover processes in chroot": "" "info: killing leftover processes in chroot": ""
} }

View File

@ -60,6 +60,7 @@
"Please plug in the OneRNG device": "", "Please plug in the OneRNG device": "",
"ERROR: Exim does not appear to have installed. $CHECK_MESSAGE": "", "ERROR: Exim does not appear to have installed. $CHECK_MESSAGE": "",
"Added onion site for ${onion_service_name}": "", "Added onion site for ${onion_service_name}": "",
"# Tripwire reports which have no violations don't need to be logged": "",
"ERROR: Dovecot does not appear to have installed. $CHECK_MESSAGE": "", "ERROR: Dovecot does not appear to have installed. $CHECK_MESSAGE": "",
"Unknown subkey usage: $GPG_KEY_USAGE": "", "Unknown subkey usage: $GPG_KEY_USAGE": "",
"Public key: $MY_GPG_PUBLIC_KEY": "", "Public key: $MY_GPG_PUBLIC_KEY": "",
@ -97,10 +98,6 @@
"Note that there's a usability/security trade-off made here.": "", "Note that there's a usability/security trade-off made here.": "",
"In order to allow git clone via http we don't redirect everything": "", "In order to allow git clone via http we don't redirect everything": "",
"should change /etc/nginx/sites-available/$GIT_DOMAIN_NAME to redirect everything over https.": "", "should change /etc/nginx/sites-available/$GIT_DOMAIN_NAME to redirect everything over https.": "",
"File not found /usr/local/bin/tox-bootstrapd": "",
"Account to run Tox's DHT bootstrap daemon": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.conf": "",
"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service": "",
"Your Tox node public key is": "", "Your Tox node public key is": "",
"tox onion domain: ${TOX_ONION_HOSTNAME}": "", "tox onion domain: ${TOX_ONION_HOSTNAME}": "",
"Your Tox node public key is: $TOX_PUBLIC_KEY": "", "Your Tox node public key is: $TOX_PUBLIC_KEY": "",

View File

@ -4555,6 +4555,13 @@ function create_procmail {
echo 'DEFAULT=$MAILDIR/' >> /home/$MY_USERNAME/.procmailrc echo 'DEFAULT=$MAILDIR/' >> /home/$MY_USERNAME/.procmailrc
echo 'LOGFILE=$HOME/log/procmail.log' >> /home/$MY_USERNAME/.procmailrc echo 'LOGFILE=$HOME/log/procmail.log' >> /home/$MY_USERNAME/.procmailrc
echo 'LOGABSTRACT=all' >> /home/$MY_USERNAME/.procmailrc echo 'LOGABSTRACT=all' >> /home/$MY_USERNAME/.procmailrc
echo '' >> /home/$MY_USERNAME/.procmailrc
echo $"# Tripwire reports which have no violations don't need to be logged" >> /home/$MY_USERNAME/.procmailrc
echo ':0 BD:' >> /home/$MY_USERNAME/.procmailrc
TRIPWIRE_VIOLATIONS_STR=$'Total violations found: 0'
echo " * .*$TRIPWIRE_VIOLATIONS_STR" >> /home/$MY_USERNAME/.procmailrc
echo '/dev/null' >> /home/$MY_USERNAME/.procmailrc
echo '' >> /home/$MY_USERNAME/.procmailrc
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.procmailrc chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.procmailrc
fi fi