|
|
@@ -19,7 +19,7 @@ else |
|
|
|
fi |
|
|
|
|
|
|
|
# APACHE |
|
|
|
if service apache2 status | grep -q 'running' |
|
|
|
if /usr/sbin/service apache2 status | grep -q 'running' |
|
|
|
then |
|
|
|
echo "[✅ OK] Apache" |
|
|
|
else |
|
|
@@ -29,7 +29,7 @@ else |
|
|
|
fi |
|
|
|
|
|
|
|
# CRON |
|
|
|
if service cron status | grep -q 'running' |
|
|
|
if /usr/sbin/service cron status | grep -q 'running' |
|
|
|
then |
|
|
|
echo "[✅ OK] Cron" |
|
|
|
else |
|
|
@@ -53,7 +53,7 @@ fi |
|
|
|
# INTERNET |
|
|
|
|
|
|
|
# tester 5 ping |
|
|
|
if ping -c5 8.8.8.8 | grep -q '0% packet loss' |
|
|
|
if ping -c5 1.1.1.1 | grep -q '0% packet loss' |
|
|
|
# Si la reponse est 0 paquets perdu, alors OK |
|
|
|
then |
|
|
|
echo "[✅ OK] Internet" |
|
|
|