Skip to content
Snippets Groups Projects
Commit fc8c928a authored by Elian Loraux's avatar Elian Loraux
Browse files

add /boot to monit and remove noauto

parent 3c847b88
No related branches found
No related tags found
1 merge request!4Resolve "Surveillance interne des serveur"
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
...@@ -56,7 +56,7 @@ if [ -z "$(dpkg -l | grep ' monit ')" ]; then ...@@ -56,7 +56,7 @@ if [ -z "$(dpkg -l | grep ' monit ')" ]; then
apt-get update && apt-get install -y monit apt-get update && apt-get install -y monit
# Monit all partition without swap and boot # Monit all partition without swap and boot
list_of_part=(`grep -v "#\|swap\|boot" /etc/fstab | awk '{print $2}'`) list_of_part=(`grep -v "#\|swap\|noauto" /etc/fstab | awk '{print $2}'`)
echo "" > ./result echo "" > ./result
for part in "${list_of_part[@]}" for part in "${list_of_part[@]}"
do do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment