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:
parent
c6ef19d4eb
commit
08cd541ea1
7 changed files with 72 additions and 93 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue