forked from evolix/ansible-roles
evomaintenance: upstream version 0.5.1
This commit is contained in:
parent
b116c47b58
commit
f5f4a82114
|
@ -19,6 +19,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* elasticsearch: listen on local interface only by default
|
* elasticsearch: listen on local interface only by default
|
||||||
* squid: Remove wait time when we turn off squid
|
* squid: Remove wait time when we turn off squid
|
||||||
* evomaintenance: Turn on API by default (instead of DB)
|
* evomaintenance: Turn on API by default (instead of DB)
|
||||||
|
* evomaintenance: upstream version 0.5.1
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
* lxc-php: Don't remove the default pool
|
* lxc-php: Don't remove the default pool
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
# Dependencies (all OS): git postgresql-client
|
# Dependencies (all OS): git postgresql-client
|
||||||
# Dependencies (Debian): sudo
|
# Dependencies (Debian): sudo
|
||||||
|
|
||||||
# version 0.5.0
|
# version 0.5.1
|
||||||
# Copyright 2007-2019 Evolix <info@evolix.fr>, Gregory Colpart <reg@evolix.fr>,
|
# Copyright 2007-2019 Evolix <info@evolix.fr>, Gregory Colpart <reg@evolix.fr>,
|
||||||
# Jérémy Lecour <jlecour@evolix.fr> and others.
|
# Jérémy Lecour <jlecour@evolix.fr> and others.
|
||||||
|
|
||||||
VERSION="0.5.0"
|
VERSION="0.5.1"
|
||||||
|
|
||||||
show_version() {
|
show_version() {
|
||||||
cat <<END
|
cat <<END
|
||||||
|
@ -454,29 +454,29 @@ PATH=${PATH}:/usr/sbin
|
||||||
|
|
||||||
SENDMAIL_BIN=$(command -v sendmail)
|
SENDMAIL_BIN=$(command -v sendmail)
|
||||||
readonly SENDMAIL_BIN
|
readonly SENDMAIL_BIN
|
||||||
if [ -z "${SENDMAIL_BIN}" ]; then
|
if [ "${HOOK_MAIL}" = "1" ] && [ -z "${SENDMAIL_BIN}" ]; then
|
||||||
echo "No \`sendmail' command has been found, can't send mail." 2>&1
|
echo "No \`sendmail' command has been found, can't send mail." 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GIT_BIN=$(command -v git)
|
GIT_BIN=$(command -v git)
|
||||||
readonly GIT_BIN
|
readonly GIT_BIN
|
||||||
if [ -z "${GIT_BIN}" ]; then
|
if [ "${HOOK_COMMIT}" = "1" ] && [ -z "${GIT_BIN}" ]; then
|
||||||
echo "No \`git' command has been found, can't commit changes" 2>&1
|
echo "No \`git' command has been found, can't commit changes" 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PSQL_BIN=$(command -v psql)
|
PSQL_BIN=$(command -v psql)
|
||||||
readonly PSQL_BIN
|
readonly PSQL_BIN
|
||||||
if [ -z "${PSQL_BIN}" ]; then
|
if [ "${HOOK_DB}" = "1" ] && [ -z "${PSQL_BIN}" ]; then
|
||||||
echo "No \`psql' command has been found, can't save to the database." 2>&1
|
echo "No \`psql' command has been found, can't save to the database." 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CURL_BIN=$(command -v curl)
|
CURL_BIN=$(command -v curl)
|
||||||
readonly CURL_BIN
|
readonly CURL_BIN
|
||||||
if [ -z "${CURL_BIN}" ]; then
|
if [ "${HOOK_API}" = "1" ] && [ -z "${CURL_BIN}" ]; then
|
||||||
echo "No \`curl' command has been found, can't call the API." 2>&1
|
echo "No \`curl' command has been found, can't call the API." 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${API_ENDPOINT}" ]; then
|
if [ "${HOOK_API}" = "1" ] && [ -z "${API_ENDPOINT}" ]; then
|
||||||
echo "No API endpoint specified, can't call the API." 2>&1
|
echo "No API endpoint specified, can't call the API." 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue