Added Read-me doc and made some slight bug fixes

This commit is contained in:
Mathew Fleisch 2017-03-24 17:37:43 -07:00
parent ef456ab581
commit 0635da0933
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ if($_POST) {
echo json_encode(array('success'=>false,'payload'=>$payload,'debug'=>$cmd."\n".implode("\n", $rmout)));
} else {
$out = [];
$cmd = 'cp -r '.$BrowserBunny->root.'/library/'.$payload.'/* '.$BrowserBunny->root.'/'.$target_dir.'/.';
$cmd = 'cp -r '.$BrowserBunny->root.'/library/'.$payload.'/* '.$BrowserBunny->root.'/'.$target_dir.'/. && sync';
exec($cmd, $out);
if(count($out)) {
echo json_encode(array('success'=>false,'payload'=>$payload,'debug'=>$cmd."\n".implode("\n", $out)));

View File

@ -29,7 +29,7 @@ wget -q --tries=15 --timeout=5 --spider http://example.com
[[ "$?" -ne 0 ]] && { LED R; echo "Could not connect to the internet" >> $log_file; exit 1; }
LED R G
[[ ! `which php` ]] && { LED R G 200; echo "Php not installed... install it!" >> $log_file; apt-get install -y php5-cli &>> $log_file; }
[[ ! `which php` ]] && { LED R G 200; echo "Php not installed..." >> $log_file; apt-get install -y php5-cli &>> $log_file; }
LED G