Skip to content

Commit

Permalink
fix dependancy
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc committed Sep 27, 2017
1 parent bdde99e commit f615135
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/class/camera.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ public static function dependancy_info() {
if (exec('which avconv | wc -l') == 0) {
$return['state'] = 'nok';
}
if (exec(system::getCmdSudo() . system::get('cmd_check') . '-E "python\-imaging" | wc -l') != 1) {
if (exec(system::getCmdSudo() . system::get('cmd_check') . '-E "python\-imaging" | wc -l') == 0) {
$return['state'] = 'nok';
}
if (exec(system::getCmdSudo() . system::get('cmd_check') . '-E "php(.*)gd" | wc -l') == 0) {
$return['state'] = 'nok';
}
return $return;
Expand Down

0 comments on commit f615135

Please sign in to comment.