Update e-mail
This commit is contained in:
parent
31b90624c8
commit
52095b7cf0
1 changed files with 15 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Nico Schottelius <nico-linux //@// schottelius.org>
|
||||
# Nico Schottelius <nico-ccollect //@// schottelius.org>
|
||||
# Date: 24-Jun-2006
|
||||
# Last Modified: -
|
||||
#
|
||||
|
@ -8,14 +8,22 @@
|
|||
CCOLLECT_CONF=${CCOLLECT_CONF:-/etc/ccollect}
|
||||
CCOLLECT_INTERVALS="$CCOLLECT_CONF/defaults/intervals"
|
||||
|
||||
if [ ! -d "$CCOLLECT_INTERVALS" ]; then
|
||||
echo "No intervals defined in $CCOLLECT_INTERVALS"
|
||||
exit 23
|
||||
me="$(basename $0)"
|
||||
|
||||
_echo()
|
||||
{
|
||||
echo "$me> $@"
|
||||
}
|
||||
|
||||
if [ ! -d "${CCOLLECT_INTERVALS}" ]; then
|
||||
_echo "No intervals defined in ${CCOLLECT_INTERVALS}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$CCOLLECT_INTERVALS"
|
||||
set -e
|
||||
cd "${CCOLLECT_INTERVALS}"
|
||||
|
||||
for interval in *; do
|
||||
eval int_$interval=$(cat $interval);
|
||||
eval echo $interval: \$int_$interval;
|
||||
eval int_${interval}=$(cat "${interval}");
|
||||
eval echo ${interval}: \$int_${interval};
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue