Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-05 16:03:11 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-06 01:31:56 +0400
commit797c2a9c7672f1d15b0da10cb59fbeacdef0eb7f (patch)
treefb0db96fd430186ad2a624f449a7226f552c7e66
parent6c8a0b2c8dbb7917e7ed4df14315b2bd93a491de (diff)
adding executable script occ (ownCloud console)
-rw-r--r--console.php4
-rwxr-xr-xocc11
2 files changed, 13 insertions, 2 deletions
diff --git a/console.php b/console.php
index 538837a04b4..4aec5bdc24f 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 <command>" . PHP_EOL;
+ echo " " . basename($argv[0]) . " <command>" . PHP_EOL;
exit(0);
}
diff --git a/occ b/occ
new file mode 100755
index 00000000000..e2b71fe4abc
--- /dev/null
+++ b/occ
@@ -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';