Add options to enable/disable hooks (sending mail, commit /etc/.git, save to database…) #7

Merged
jlecour merged 61 commits from options into master 2019-03-26 15:14:12 +01:00
Showing only changes of commit 1bfe7c4b86 - Show all commits

View file

@ -421,10 +421,9 @@ if [ "${INTERACTIVE}" = "1" ]; then
else
y="y"; n="N"
fi
question="Do you want to send an email? [${y}${n}] "
answer=""
while true; do
echo "${question}"
echo "Do you want to send an email to <${EVOMAINTMAIL}>? [${y}${n}e] "
read -r answer
case $answer in
[Yy] )
@ -434,6 +433,14 @@ if [ "${INTERACTIVE}" = "1" ]; then
[Nn] )
break
;;
[Ee] )
echo "To: [${EVOMAINTMAIL}] "
read -r mail_recipient
if [ -n "${mail_recipient}" ]; then
EVOMAINTMAIL="${mail_recipient}"
echo "changed to ${EVOMAINTMAIL}"
fi
;;
"" )
if [ "${OPT_MAIL}" = "1" ]; then
hook_mail