On utilise le probe fstab.local pour générer la conf des disques pour monit

darcs-hash:20080210175932-af139-986ad9079d735eab098a0204621c64945e1d4314.gz
This commit is contained in:
Jeremie Dimino 2008-02-10 18:59:32 +01:00
parent c6ef19d4eb
commit 08cd541ea1
7 changed files with 72 additions and 93 deletions

View file

@ -1,10 +1,11 @@
#!/bin/bash
if [ ! -f /etc/fstab.local ]; then
echo "none"
exit 0
if [ -f /etc/fstab.local ]; then
echo "group:fstab.local"
exec cat /etc/fstab.local
else
# S'il n'y a pas de fstab.local (pour les serveurs ou ca n'a pas ete
# fait, on lit le fstab parce qu'on on en a besoin pour
# /etc/monit/services)
exec cat /etc/fstab
fi
echo "group:fstab.local"
exec cat /etc/fstab.local