Version
top

Index Cache Score Version
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorevo.narval.tk <b75c71f7758e8c0b6ce423decc1a3974>2016-07-04 01:49:34 +0200
committerevo.narval.tk <b75c71f7758e8c0b6ce423decc1a3974>2016-07-04 01:49:34 +0200
commitafa245f278f0718524882015dce90a029ffe2a9e (patch)
tree7c97ba954e0428e18a189778f660f9777ccdca92
parentbb2d48ff3c0ff5e15f816b1984b10a21a3f4127e (diff)
manual user edition
-rw-r--r--apache2/cgi.htaccess5
-rwxr-xr-xput.sh36
2 files changed, 41 insertions, 0 deletions
diff --git a/apache2/cgi.htaccess b/apache2/cgi.htaccess
index 64bac23..5d3efa9 100644
--- a/apache2/cgi.htaccess
+++ b/apache2/cgi.htaccess
@@ -21,6 +21,11 @@ AddHandler cgi-script .cgi
Require group history
</Files>
+<Files put.*>
+ # login/password
+ Require group index
+</Files>
+
#<Files search.cgi>
# # login/password
# Require env NO_AUTH
diff --git a/put.sh b/put.sh
new file mode 100755
index 0000000..942d99a
--- /dev/null
+++ b/put.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+#=======================================================================
+# * Version: $Id: search.cgi,v 1.1.1.1 2015/05/31 14:39:44 nroche Exp $
+# * Project: MediaTex
+# * Module : Upload bash script
+# *
+# * This script is part of the collection meta-data
+#
+# MediaTex is an Electronic Records Management System
+# Copyright (C) 2014 Nicolas Roche
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#=======================================================================
+#set -x
+set -e
+
+QUERY="mediatex upload++"
+
+USER=${PWD%/public_html/cgi}
+USER=${USER##*/}
+SERVER=${USER%-*}
+COLL=${USER#*-}
+
+#echo "$QUERY -c $SERVER $@ to coll $COLL"
+$QUERY -c $SERVER $@ to coll $COLL -p -ffile 2>&1