blob: 04d3e530fb061d4bc813fcfe28e50977d047672d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/bash
echo "export OGLOGCOMMAND=/tmp/command.log" >> /etc/profile.d/loadenviron.sh
echo "export OGLOGSESSION=/tmp/session.log" >> /etc/profile.d/loadenviron.sh
export OGLOGCOMMAND=/tmp/command.log
export OGLOGSESSION=/tmp/session.log
#httd-log-status
cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.back
cp /opt/opengnsys/lib/httpd/lighttpd.conf /etc/lighttpd/
cp /etc/lighttpd/conf-enabled/10-cgi.conf /etc/lighttpd/conf-enabled/10-cgi.conf.back
cp /opt/opengnsys/lib/httpd/10-cgi.conf /etc/lighttpd/conf-enabled/
/etc/init.d/lighttpd start
chmod 755 /opt
cp /opt/opengnsys/lib/httpd/* /usr/lib/cgi-bin
#TODO:
dstat -dn 10 > /tmp/bandwidth &
#Se pasan al loadenviro para su uso en ssh
#export OGLOGSESSION=/tmp/session.log
#export OGLOGCOMMAND=/tmp/command.log
touch $OGLOGCOMMAND
touch $OGLOGSESSION
touch ${OGLOGCOMMAND}.tmp
chmod 777 $OGLOGCOMMAND
chmod 777 $OGLOGSESSION
chmod 777 ${OGLOGCOMMAND}.tmp
touch /tmp/menu.tmp
chmod 777 /tmp/menu.tmp
echo "WAITING" >> $OGLOGSESSION
# http-log-status
|