Skip to content

Commit

Permalink
For issue tariqbuilds#98, read from custom list
Browse files Browse the repository at this point in the history
  • Loading branch information
triforce authored and arnaudbey committed Feb 11, 2014
1 parent c7f25b8 commit a11bf8a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions sh/where.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<?php

$binaries = explode(" ", "php node mysql vim python ruby java apache2 nginx openssl vsftpd make");

<?php
// Read list of programs to check from a list
if (file_exists("monitor"))
{
$data = file_get_contents("monitor");
$binaries = explode(" ", $data);
}
// If file doesn't exist then use hard coded list
else
{
$binaries = explode(" ", "php node mysql vim python ruby java apache2 nginx openssl vsftpd make");
}
header('Content-Type: application/json; charset=UTF-8');

$data = array();
Expand Down

0 comments on commit a11bf8a

Please sign in to comment.