From 2871d11b5c1148909787d9bca732dfcd1fcbfc5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Mon, 5 Aug 2013 14:03:11 +0200 Subject: [PATCH] adding executable script occ (ownCloud console) --- console.php | 4 ++-- occ | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100755 occ diff --git a/console.php b/console.php index 538837a04b..4aec5bdc24 100644 --- a/console.php +++ b/console.php @@ -20,9 +20,9 @@ if (!OC::$CLI) { exit(0); } -if ($argc < 1) { +if ($argc <= 1) { echo "Usage:" . PHP_EOL; - echo " php console.php " . PHP_EOL; + echo " " . basename($argv[0]) . " " . PHP_EOL; exit(0); } diff --git a/occ b/occ new file mode 100755 index 0000000000..e2b71fe4ab --- /dev/null +++ b/occ @@ -0,0 +1,11 @@ +#!/usr/bin/php + + * 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';