Release 19.04 #89

Merged
jlecour merged 4 commits from release-1904 into master 2019-04-25 17:06:43 +02:00
2 changed files with 53 additions and 32 deletions

View file

@ -1,8 +1,28 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). and this project does not adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [Unreleased]
### Added
### Changed
### Fixed
## [19.04] - 2019-04-25
### Added
* IS_EVOBACKUP_INCS
### Changed
* change versioning scheme : year.month.patch
* extracts tests into functions
* add verbose and quiet modes
* add usage output on error
* add braces and quotes
## [0.13] - 2018-04-10 ## [0.13] - 2018-04-10
### Added ### Added
@ -32,45 +52,45 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added ### Added
* Bunch of new checks: * Bunch of new checks:
IS_PRIVKEYWOLRDREADABLE IS_PRIVKEYWOLRDREADABLE
IS_EVOLINUXSUDOGROUP IS_EVOLINUXSUDOGROUP
IS_USERINADMGROUP IS_USERINADMGROUP
IS_APACHE2EVOLINUXCONF IS_APACHE2EVOLINUXCONF
IS_BACKPORTSCONF IS_BACKPORTSCONF
IS_BIND9MUNIN IS_BIND9MUNIN
IS_BIND9LOGROTATE IS_BIND9LOGROTATE
IS_BROADCOMFIRMWARE IS_BROADCOMFIRMWARE
IS_HARDWARERAIDTOOL IS_HARDWARERAIDTOOL
IS_LOG2MAILSYSTEMDUNIT IS_LOG2MAILSYSTEMDUNIT
IS_LISTUPGRADE IS_LISTUPGRADE
IS_MARIADBEVOLINUXCONF IS_MARIADBEVOLINUXCONF
IS_MARIADBSYSTEMDUNIT IS_MARIADBSYSTEMDUNIT
IS_MYSQLMUNIN IS_MYSQLMUNIN
IS_PHPEVOLINUXCONF IS_PHPEVOLINUXCONF
IS_SQUIDLOGROTATE IS_SQUIDLOGROTATE
IS_SQUIDEVOLINUXCONF IS_SQUIDEVOLINUXCONF
IS_SQL_BACKUP IS_SQL_BACKUP
IS_POSTGRES_BACKUP IS_POSTGRES_BACKUP
IS_LDAP_BACKUP IS_LDAP_BACKUP
IS_REDIS_BACKUP IS_REDIS_BACKUP
IS_ELASTIC_BACKUP IS_ELASTIC_BACKUP
IS_MONGO_BACKUP IS_MONGO_BACKUP
IS_MOUNT_FSTAB IS_MOUNT_FSTAB
IS_NETWORK_INTERFACES IS_NETWORK_INTERFACES
### Changed ### Changed
* IS_UPTIME added in --cron mode * IS_UPTIME added in --cron mode
* is_pack_web() for Stretch * is_pack_web() for Stretch
* IS_DPKGWARNING for Stretch * IS_DPKGWARNING for Stretch
* IS_MOUNT_FSTAB is disabled if lsblk not available * IS_MOUNT_FSTAB is disabled if lsblk not available
* IS_MINIFWPERMS for Stretch * IS_MINIFWPERMS for Stretch
* IS_SQUID for Stretch * IS_SQUID for Stretch
* IS_LOG2MAILAPACHE for Stretch * IS_LOG2MAILAPACHE for Stretch
* IS_AUTOIF for Stretch * IS_AUTOIF for Stretch
* IS_UPTIME warn if uptime is more thant 2y, was 1y * IS_UPTIME warn if uptime is more thant 2y, was 1y
* IS_NOTUPGRADED warn if last upgrade is older than 90d, was 30d * IS_NOTUPGRADED warn if last upgrade is older than 90d, was 30d
* IS_TUNE2FS_M5 use python in place of bc for calculation * IS_TUNE2FS_M5 use python in place of bc for calculation
* IS_EVOMAINTENANCEUSERS for Stretch * IS_EVOMAINTENANCEUSERS for Stretch
* IS_EVOMAINTENANCECONF check also the mode of the file (600) * IS_EVOMAINTENANCECONF check also the mode of the file (600)

View file

@ -315,7 +315,7 @@ check_nrpeperms() {
} }
check_minifwperms() { check_minifwperms() {
if [ -f "$MINIFW_FILE" ]; then if [ -f "$MINIFW_FILE" ]; then
actual=$(stat --format "%a" $MINIFW_FILE) actual=$(stat --format "%a" "$MINIFW_FILE")
expected="600" expected="600"
test "$expected" = "$actual" || failed "IS_MINIFWPERMS" test "$expected" = "$actual" || failed "IS_MINIFWPERMS"
fi fi
@ -1102,7 +1102,7 @@ check_evobackup_incs() {
if is_installed bkctld; then if is_installed bkctld; then
bkctld_cron_file=${bkctld_cron_file:-/etc/cron.d/bkctld} bkctld_cron_file=${bkctld_cron_file:-/etc/cron.d/bkctld}
if [ -f "${bkctld_cron_file}" ]; then if [ -f "${bkctld_cron_file}" ]; then
root_crontab=$(grep -v "^#" ${bkctld_cron_file}) root_crontab=$(grep -v "^#" "${bkctld_cron_file}")
echo "${root_crontab}" | grep -q "bkctld inc" || failed "IS_EVOBACKUP_INCS" "\`bkctld inc' is missing in ${bkctld_cron_file}" echo "${root_crontab}" | grep -q "bkctld inc" || failed "IS_EVOBACKUP_INCS" "\`bkctld inc' is missing in ${bkctld_cron_file}"
echo "${root_crontab}" | grep -q "check-incs.sh" || failed "IS_EVOBACKUP_INCS" "\`check-incs.sh' is missing in ${bkctld_cron_file}" echo "${root_crontab}" | grep -q "check-incs.sh" || failed "IS_EVOBACKUP_INCS" "\`check-incs.sh' is missing in ${bkctld_cron_file}"
else else
@ -1343,7 +1343,7 @@ readonly PROGDIR=$(realpath -m "$(dirname "$0")")
# shellcheck disable=2124 # shellcheck disable=2124
readonly ARGS=$@ readonly ARGS=$@
readonly VERSION="0.14.0.beta2" readonly VERSION="19.04"
# Disable LANG* # Disable LANG*
export LANG=C export LANG=C
@ -1396,4 +1396,5 @@ while :; do
shift shift
done done
# shellcheck disable=SC2086
main ${ARGS} main ${ARGS}