Fix mail notification constant name
This commit is contained in:
parent
60ccaaa2e2
commit
0296fab941
16
bkctld
16
bkctld
|
@ -427,8 +427,10 @@ sub_inc() {
|
||||||
echo "Inc $date of $jail already exist !" >&2
|
echo "Inc $date of $jail already exist !" >&2
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ -n "${incs_logs}" ]; then
|
if [ -n "${NOTIF_MAIL}" ]; then
|
||||||
echo "${incs_logs}" | mail -s "[info] EvoBackup - create incs" $MAIL
|
if [ -n "${incs_logs}" ]; then
|
||||||
|
echo "${incs_logs}" | mail -s "[info] EvoBackup - create incs" $NOTIF_MAIL
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -443,8 +445,8 @@ sub_rm() {
|
||||||
echo "$0 rm always run (PID $pid) !" >&2
|
echo "$0 rm always run (PID $pid) !" >&2
|
||||||
kill -9 $pid
|
kill -9 $pid
|
||||||
rm $pidfile
|
rm $pidfile
|
||||||
if [ -n "${MAIL}" ]; then
|
if [ -n "${NOTIF_MAIL}" ]; then
|
||||||
echo "$0 rm $pid was killed by $$ !" | mail -s "[warn] EvoBackup - purge incs interrupted" $MAIL
|
echo "$0 rm $pid was killed by $$ !" | mail -s "[warn] EvoBackup - purge incs interrupted" $NOTIF_MAIL
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
rm $pidfile
|
rm $pidfile
|
||||||
|
@ -481,8 +483,10 @@ sub_rm() {
|
||||||
done
|
done
|
||||||
rmdir $empty
|
rmdir $empty
|
||||||
rm $pidfile
|
rm $pidfile
|
||||||
if [ -n "${rms_logs}" ]; then
|
if [ -n "${NOTIF_MAIL}" ]; then
|
||||||
echo "${rms_logs}" | mail -s "[info] EvoBackup - purge incs" $MAIL
|
if [ -n "${rms_logs}" ]; then
|
||||||
|
echo "${rms_logs}" | mail -s "[info] EvoBackup - purge incs" $NOTIF_MAIL
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,4 +10,4 @@
|
||||||
#SSHD_CONFIG='/etc/ssh/sshd_config'
|
#SSHD_CONFIG='/etc/ssh/sshd_config'
|
||||||
#AUTHORIZED_KEYS='/root/.ssh/authorized_keys'
|
#AUTHORIZED_KEYS='/root/.ssh/authorized_keys'
|
||||||
#FIREWALL_RULES='/etc/firewall.rc.jails'
|
#FIREWALL_RULES='/etc/firewall.rc.jails'
|
||||||
#MAIL='test@example.com'
|
#NOTIF_MAIL='test@example.com'
|
||||||
|
|
|
@ -142,7 +142,7 @@ default : /var/log
|
||||||
Optionnals vars are no default value. No set them desactivate correspondant fonctionnality.
|
Optionnals vars are no default value. No set them desactivate correspondant fonctionnality.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
MAIL
|
NOTIF_MAIL
|
||||||
.RS 4
|
.RS 4
|
||||||
Mail address were notification mail will be set.
|
Mail address were notification mail will be set.
|
||||||
.RE
|
.RE
|
||||||
|
|
Loading…
Reference in a new issue