forked from evolix/ansible-roles
evomaintenance: upstream release 0.6.3
This commit is contained in:
parent
099691614e
commit
783dcb9890
|
@ -52,8 +52,8 @@ The **patch** part changes incrementally at each release.
|
||||||
* evocheck: upstream verison 20.02.1
|
* evocheck: upstream verison 20.02.1
|
||||||
* evocheck: cron jobs execute in verbose
|
* evocheck: cron jobs execute in verbose
|
||||||
* evolinux-base: use "evolinux_internal_group" for SSH authentication
|
* evolinux-base: use "evolinux_internal_group" for SSH authentication
|
||||||
|
* evomaintenance: upstream release 0.6.3
|
||||||
* evomaintenance: Turn on API by default (instead of DB)
|
* evomaintenance: Turn on API by default (instead of DB)
|
||||||
* evomaintenance: upstream version 0.6.2
|
|
||||||
* evomaintenance: install PG dependencies only when needed
|
* evomaintenance: install PG dependencies only when needed
|
||||||
* listupgrade: update from upstream
|
* listupgrade: update from upstream
|
||||||
* lxc: rely on lxc_container module instead of command module
|
* lxc: rely on lxc_container module instead of command module
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# 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.6.2"
|
VERSION="0.6.3"
|
||||||
|
|
||||||
show_version() {
|
show_version() {
|
||||||
cat <<END
|
cat <<END
|
||||||
|
@ -54,6 +54,12 @@ Options
|
||||||
END
|
END
|
||||||
}
|
}
|
||||||
|
|
||||||
|
syslog() {
|
||||||
|
if [ -x "${LOGGER_BIN}" ]; then
|
||||||
|
${LOGGER_BIN} -t "evomaintenance" "$1"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
get_system() {
|
get_system() {
|
||||||
uname -s
|
uname -s
|
||||||
}
|
}
|
||||||
|
@ -184,6 +190,7 @@ remount_repository_readwrite() {
|
||||||
else
|
else
|
||||||
mountpoint=$(stat -c '%m' $1)
|
mountpoint=$(stat -c '%m' $1)
|
||||||
mount -o remount,rw ${mountpoint}
|
mount -o remount,rw ${mountpoint}
|
||||||
|
syslog "Re-mount ${mountpoint} as read-write to commit in repository $1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
remount_repository_readonly() {
|
remount_repository_readonly() {
|
||||||
|
@ -193,6 +200,7 @@ remount_repository_readonly() {
|
||||||
else
|
else
|
||||||
mountpoint=$(stat -c '%m' $1)
|
mountpoint=$(stat -c '%m' $1)
|
||||||
mount -o remount,ro ${mountpoint} 2>/dev/null
|
mount -o remount,ro ${mountpoint} 2>/dev/null
|
||||||
|
syslog "Re-mount ${mountpoint} as read-only after commit to repository $1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -512,6 +520,9 @@ 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
|
||||||
|
|
||||||
|
LOGGER_BIN=$(command -v logger)
|
||||||
|
readonly LOGGER_BIN
|
||||||
|
|
||||||
if [ "${HOOK_API}" = "1" ] && [ -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