version 1.0.2 httpd-log #421 inicio del servicio lighttpd

git-svn-id: https://opengnsys.es/svn/branches/version1.0@2107 a21b9725-9963-47de-94b9-378ad31fedc9
remotes/github/debian-pkg
Antonio Doblas Viso 2011-06-28 19:02:13 +00:00
parent 97f3b6a9e4
commit 28986cb9b5
2 changed files with 37 additions and 0 deletions

View File

@ -1,6 +1,25 @@
#!/bin/bash
# TODO Separar esta sección en otro script
#httd-log-status
cp /opt/opengnsys/http/10-cgi.conf /etc/lighttpd/conf-enabled/
/etc/init.d/lighttpd start
chmod 755 /opt
cp /opt/opengnsys/http/* /usr/lib/cgi-bin
#TODO:
dstat -dn 10 > /tmp/bandwidth &
export OGLOGTRACK=/tmp/track.log
export OGLOGSTANDAR=/tmp/standar.log
touch $OGLOGTRACK
touch $OGLOGSTANDAR
touch ${OGLOGTRACK}.tmp
chmod 777 $OGLOGTRACK
chmod 777 $OGLOGSTANDAR
chmod 777 ${OGLOGTRACK}.tmp
echo "preparado" >> $OGLOGSTANDAR
# http-log-status
# Lanzar servicios complementarios del cliente.
echo -ne "og\nog\n" | passwd root
#Compatibilidad ssh con el boot-tools 1.0.2

View File

@ -0,0 +1,18 @@
# /usr/share/doc/lighttpd-doc/cgi.txt
server.modules += ( "mod_cgi" )
$HTTP["url"] =~ "^/cgi-bin/" {
alias.url += ( "/cgi-bin/" => "/usr/lib/cgi-bin/" )
$HTTP["url"] =~ "^/cgi-bin/" {
cgi.assign = ( ".sh" => "/bin/sh" )
}
}
## Warning this represents a security risk, as it allow to execute any file
## with a .pl/.py even outside of /usr/lib/cgi-bin.
#
#cgi.assign = (
# ".pl" => "/usr/bin/perl",
# ".py" => "/usr/bin/python",
#)