video; ensure transcoder is a file
parent
05770e5015
commit
8b2f900e50
|
@ -239,6 +239,11 @@ class VideoController extends ApiBase
|
|||
throw new \Exception('Transcoder not configured');
|
||||
}
|
||||
|
||||
// Make sure transcoder exists
|
||||
if (!file_exists($transcoder)) {
|
||||
throw new \Exception("Transcoder not found; run occ memories video-setup! ({$transcoder})");
|
||||
}
|
||||
|
||||
// Make transcoder executable
|
||||
if (!is_executable($transcoder)) {
|
||||
@chmod($transcoder, 0755);
|
||||
|
|
Loading…
Reference in New Issue