918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | echo "export OGLOGCOMMAND=/tmp/command.log" >> /etc/profile.d/loadenviron.sh |
---|
4 | echo "export OGLOGSESSION=/tmp/session.log" >> /etc/profile.d/loadenviron.sh |
---|
5 | export OGLOGCOMMAND=/tmp/command.log |
---|
6 | export OGLOGSESSION=/tmp/session.log |
---|
7 | |
---|
8 | #httd-log-status |
---|
9 | cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.back |
---|
10 | cp /opt/opengnsys/lib/httpd/lighttpd.conf /etc/lighttpd/ |
---|
11 | cp /etc/lighttpd/conf-enabled/10-cgi.conf /etc/lighttpd/conf-enabled/10-cgi.conf.back |
---|
12 | cp /opt/opengnsys/lib/httpd/10-cgi.conf /etc/lighttpd/conf-enabled/ |
---|
13 | /etc/init.d/lighttpd start |
---|
14 | chmod 755 /opt |
---|
15 | cp /opt/opengnsys/lib/httpd/* /usr/lib/cgi-bin |
---|
16 | #TODO: |
---|
17 | dstat -dn 10 > /tmp/bandwidth & |
---|
18 | #Se pasan al loadenviro para su uso en ssh |
---|
19 | #export OGLOGSESSION=/tmp/session.log |
---|
20 | #export OGLOGCOMMAND=/tmp/command.log |
---|
21 | touch $OGLOGCOMMAND |
---|
22 | touch $OGLOGSESSION |
---|
23 | touch ${OGLOGCOMMAND}.tmp |
---|
24 | chmod 777 $OGLOGCOMMAND |
---|
25 | chmod 777 $OGLOGSESSION |
---|
26 | chmod 777 ${OGLOGCOMMAND}.tmp |
---|
27 | touch /tmp/menu.tmp |
---|
28 | chmod 777 /tmp/menu.tmp |
---|
29 | echo "WAITING" >> $OGLOGSESSION |
---|
30 | # http-log-status |
---|
Note: See
TracBrowser
for help on using the repository browser.