From afa245f278f0718524882015dce90a029ffe2a9e Mon Sep 17 00:00:00 2001 From: "evo.narval.tk" Date: Mon, 4 Jul 2016 01:49:34 +0200 Subject: manual user edition --- apache2/cgi.htaccess | 5 +++++ put.sh | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100755 put.sh 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 + + # login/password + Require group index + + # # # 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 . +#======================================================================= +#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 -- cgit v1.2.3