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 5f06aec803 - Show all commits

View file

@ -427,10 +427,8 @@ if [ "${INTERACTIVE}" = "1" ]; then
esac
done
fi
else
if [ "${HOOK_COMMIT}" = "1" ]; then
hook_commit
fi
elif [ "${HOOK_COMMIT}" = "1" ]; then
hook_commit
fi
# Database hook
@ -463,10 +461,8 @@ if [ "${INTERACTIVE}" = "1" ]; then
;;
esac
done
else
if [ "${HOOK_DB}" = "1" ]; then
hook_db
fi
elif [ "${HOOK_DB}" = "1" ]; then
hook_db
fi
# Mail hook
@ -506,10 +502,8 @@ if [ "${INTERACTIVE}" = "1" ]; then
;;
esac
done
else
if [ "${HOOK_MAIL}" = "1" ]; then
hook_mail
fi
elif [ "${HOOK_MAIL}" = "1" ]; then
hook_mail
fi
exit 0