Bläddra i källkod

mise en forme du script de verif des services

master
heuzef 5 år sedan
förälder
incheckning
2cf1649006
2 ändrade filer med 8 tillägg och 1 borttagningar
  1. +7
    -0
      scripts/check_services.sh
  2. +1
    -1
      ui/index.php

+ 7
- 0
scripts/check_services.sh Visa fil

@@ -1,6 +1,11 @@
#!/bin/bash
# Allo-GG
# Routine de verification de l'etat des services

echo -e "\e[42m[********************]\e[49m"
date
echo

gpio -g write 18 1

# LOG2RAM
@@ -81,4 +86,6 @@ gpio -g write 18 0
echo
echo -e "\e[42m[Tout va bien ^_^]\e[49m"
echo
echo -e "\e[42m[********************]\e[49m"
echo
exit

+ 1
- 1
ui/index.php Visa fil

@@ -148,7 +148,7 @@ if (isset($_POST['password']) && $_POST['password'] == 'heuzef') {
<?php $sonette = exec("/usr/local/bin/gpio -g read 17"); ?>
<?php $porte = exec("/usr/local/bin/gpio -g read 4"); ?>

<span class="badge badge-pill badge-<?php echo $etat_status[$etat]; ?>">&nbsp;</span>
<a href="check_services.php"><span class="badge badge-pill badge-<?php echo $etat_status[$etat]; ?>">&nbsp;</span></a>
&nbsp;
<span class="badge badge-pill badge-<?php echo $porte_status[$porte]; ?>">&nbsp;</span>
&nbsp;


Laddar…
Avbryt
Spara