forked from evolix/evocheck
IS_VARTMPFS: use findmnt if available
This commit is contained in:
parent
6993e8f8b3
commit
83fa22a72a
|
@ -10,6 +10,7 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
|
||||||
* IS_EVOBACKUP_EXCLUDE_MOUNT: exclude disabled backup scripts
|
* IS_EVOBACKUP_EXCLUDE_MOUNT: exclude disabled backup scripts
|
||||||
* IS_DUPLICATE_FS_LABEL: disable blkid cache
|
* IS_DUPLICATE_FS_LABEL: disable blkid cache
|
||||||
* IS_POSTGRES_BACKUP: look for compressed backup too
|
* IS_POSTGRES_BACKUP: look for compressed backup too
|
||||||
|
* IS_VARTMPFS: use findmnt if available
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
||||||
|
|
|
@ -205,10 +205,13 @@ check_customsudoers() {
|
||||||
grep -E -qr "umask=0077" /etc/sudoers* || failed "IS_CUSTOMSUDOERS" "missing umask=0077 in sudoers file"
|
grep -E -qr "umask=0077" /etc/sudoers* || failed "IS_CUSTOMSUDOERS" "missing umask=0077 in sudoers file"
|
||||||
}
|
}
|
||||||
check_vartmpfs() {
|
check_vartmpfs() {
|
||||||
|
FINDMNT_BIN=$(command -v findmnt)
|
||||||
|
if [ -x "${FINDMNT_BIN}" ]; then
|
||||||
|
${FINDMNT_BIN} /var/tmp --type tmpfs --noheadings > /dev/null || failed "IS_VARTMPFS" "/var/tmp is not a tmpfs"
|
||||||
|
else
|
||||||
df /var/tmp | grep -q tmpfs || failed "IS_VARTMPFS" "/var/tmp is not a tmpfs"
|
df /var/tmp | grep -q tmpfs || failed "IS_VARTMPFS" "/var/tmp is not a tmpfs"
|
||||||
}
|
fi
|
||||||
check_vartmpfs() {
|
|
||||||
df /var/tmp | grep -q tmpfs || failed "IS_VARTMPFS" "/var/tmp is not a tmpfs"
|
|
||||||
}
|
}
|
||||||
check_serveurbase() {
|
check_serveurbase() {
|
||||||
is_installed serveur-base || failed "IS_SERVEURBASE" "serveur-base package is not installed"
|
is_installed serveur-base || failed "IS_SERVEURBASE" "serveur-base package is not installed"
|
||||||
|
|
Loading…
Reference in a new issue