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 90e3bc188f - Show all commits

View file

@ -349,7 +349,10 @@ USER=$(logname)
PATH=${PATH}:/usr/sbin
SENDMAIL_BIN=$(command -v sendmail)
readonly SENDMAIL_BIN
GIT_BIN=$(command -v git)
readonly GIT_BIN
GIT_REPOSITORIES="/etc /etc/bind"
@ -374,6 +377,7 @@ if [ -t 0 ]; then
else
INTERACTIVE=0
fi
readonly INTERACTIVE
if [ -z "${MESSAGE}" ] && [ "${INTERACTIVE}" = "1" ]; then
# get input from stdin