diff options
author | evo.narval.tk <b75c71f7758e8c0b6ce423decc1a3974> | 2016-07-04 01:49:34 +0200 |
---|---|---|
committer | evo.narval.tk <b75c71f7758e8c0b6ce423decc1a3974> | 2016-07-04 01:49:34 +0200 |
commit | afa245f278f0718524882015dce90a029ffe2a9e (patch) | |
tree | 7c97ba954e0428e18a189778f660f9777ccdca92 | |
parent | bb2d48ff3c0ff5e15f816b1984b10a21a3f4127e (diff) |
manual user edition
-rw-r--r-- | apache2/cgi.htaccess | 5 | ||||
-rwxr-xr-x | put.sh | 36 |
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 @@ -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 |