Merge branch 'master' into debian

This commit is contained in:
Benoît S. 2018-04-10 15:32:45 +02:00
commit 2afbe463e0
2 changed files with 17 additions and 7 deletions

View file

@ -3,21 +3,30 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased] ## [Unreleased]
## [0.13] - 2018-04-10
### Added
* New checks:
IS_EVOLIX_USER
### Changed
* Fixing IS_DUPLICATE_FS_LEVEL check
* Custom limit for IS_NOTUPGRADED
* IS_SSHALLOWUSERS now check also for AllowGroups
## [0.12] - 2018-03-19 ## [0.12] - 2018-03-19
### Added ### Added
* New checks: * New checks:
IS_DUPLICATE_FS_LEVEL IS_DUPLICATE_FS_LEVEL
IS_EVOMAINTENANCE_FW
IS_EVOLIX_USER
### Changed ### Changed
* Enabling IS_EVOBACKUP by default * Enabling IS_EVOBACKUP by default
* Better output for IS_MYSQLMUNIN * Better output for IS_MYSQLMUNIN
* Custom limit for IS_NOTUPGRADED
* IS_SSHALLOWUSERS now check also for AllowGroups
## [0.11] - 2018-02-07 ## [0.11] - 2018-02-07

View file

@ -745,10 +745,10 @@ if [ -e /etc/debian_version ]; then
fi fi
if [ "$IS_DUPLICATE_FS_LABEL" = 1 ]; then if [ "$IS_DUPLICATE_FS_LABEL" = 1 ]; then
# Only on systems which have lsblk # Do it only if thereis blkid binary
if [ -x "$(which lsblk)" ]; then if [ -x "$(which blkid)" ]; then
tmpFile=$(mktemp -p /tmp) tmpFile=$(mktemp -p /tmp)
for part in $(lsblk -n -o LABEL); do for part in $(blkid | grep -v raid_member | grep -Eo 'LABEL=".*"' | cut -d'"' -f2); do
echo "$part" >> "$tmpFile" echo "$part" >> "$tmpFile"
done done
tmpOutput=$(sort < "$tmpFile" | uniq -d) tmpOutput=$(sort < "$tmpFile" | uniq -d)
@ -761,6 +761,7 @@ if [ -e /etc/debian_version ]; then
fi fi
rm $tmpFile rm $tmpFile
fi fi
fi
if [ "$IS_EVOLIX_USER" = 1 ]; then if [ "$IS_EVOLIX_USER" = 1 ]; then
getent passwd evolix >/dev/null && echo 'IS_EVOLIX_USER FAILED!' getent passwd evolix >/dev/null && echo 'IS_EVOLIX_USER FAILED!'