Skip to content
Snippets Groups Projects
Verified Commit 187eb600 authored by David Beniamine's avatar David Beniamine
Browse files

Sort by hostname

parent 6293f9f8
No related branches found
No related tags found
No related merge requests found
......@@ -26,4 +26,4 @@ subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -
host=$subnet.52
echo "get_registry" | netcat $host $port
stdbuf -i0 $netcat
stdbuf -i0 $netcat | sort -k 3
......@@ -62,15 +62,16 @@ if(!isset($action)){
</form>
<h2> Gestion des postes </h2>
<div class="table-responsive">
<table class="table-striped table-bordered table-hover">
<tr>
<th>Nom</th>
<th>IP(s)</th>
<th>MAC</th>
<th>Version Debian</th>
<th>Version Primtux</th>
<th>État apt</th>
<th>État git</th>
<th>Version&nbsp;Debian</th>
<th>Version&nbsp;Primtux</th>
<th>Nombre de mises à jour en attente</th>
<th>État&nbsp;git</th>
<th>Date dernier contact</th>
<th>Actions</th>
</tr>
......@@ -90,8 +91,8 @@ if(!isset($action)){
if($nb_infos > 4){
echo "<td>".$entry[4]."</td>";
echo "<td>".$entry[5]."</td>";
echo "<td>".$entry[3]." mises à jour en attente</td>";
echo "<td> branch ".$entry[6]." ".$entry[7]." commits en retard</td>";
echo "<td>".$entry[3]."</td>";
echo "<td> branche ".$entry[6].", ".$entry[7]." commits en retard</td>";
}else{
echo "<td>NA</td>";
echo "<td>NA</td>";
......@@ -124,9 +125,7 @@ if(!isset($action)){
}
?>
</table>
<pre>
<?php json_encode($registry); ?>
</pre>
</div>
<?php
}else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment