浏览代码

mise en forme du script de verif des services

master
heuzef 5 年前
父节点
当前提交
2cf1649006
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. +7
    -0
      scripts/check_services.sh
  2. +1
    -1
      ui/index.php

+ 7
- 0
scripts/check_services.sh 查看文件

@@ -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 查看文件

@@ -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;


正在加载...
取消
保存