Merge pull request #4320 from owncloud/adding-executable-occ-master

adding executable script occ (ownCloud console)
This commit is contained in:
Morris Jobke 2013-08-05 06:07:27 -07:00
commit f55fbc9093
2 changed files with 13 additions and 2 deletions

View File

@ -20,9 +20,9 @@ if (!OC::$CLI) {
exit(0); exit(0);
} }
if ($argc < 1) { if ($argc <= 1) {
echo "Usage:" . PHP_EOL; echo "Usage:" . PHP_EOL;
echo " php console.php <command>" . PHP_EOL; echo " " . basename($argv[0]) . " <command>" . PHP_EOL;
exit(0); exit(0);
} }

11
occ Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/php
<?php
/**
* Copyright (c) 2013 Thomas Müller <thomas.mueller@tmit.eu>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
//$argv = $_SERVER['argv'];
require_once __DIR__ . '/console.php';