SVN: nagios-notify/trunk/nagios-notify
glen
glen at pld-linux.org
Fri Feb 20 12:10:55 CET 2009
Author: glen
Date: Fri Feb 20 12:10:55 2009
New Revision: 10134
Modified:
nagios-notify/trunk/nagios-notify
Log:
- easy code to save env for debugging
Modified: nagios-notify/trunk/nagios-notify
==============================================================================
--- nagios-notify/trunk/nagios-notify (original)
+++ nagios-notify/trunk/nagios-notify Fri Feb 20 12:10:55 2009
@@ -308,4 +308,11 @@
exit 1
fi
+# Save ENV to temp file for debugging
+#debug=1
+if [ "$debug" = 1 ]; then
+ tmp=$(mktemp -t nagios-notify.env.XXXXXX)
+ env | LC_ALL=C sort | awk -F= '/NAGIOS_/{printf("export %s=%c%s%c\n", $1, 39, $2, 39)}' > $tmp
+fi
+
template_subst "$tmpl"
More information about the pld-cvs-commit
mailing list