update OnShell Script
This commit is contained in:
parent
854bb51087
commit
7566f67f14
2 changed files with 17 additions and 7 deletions
|
@ -1,15 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Channel og Directory. Where Logfiles are stored. Only need to change this
|
||||
LANG=C
|
||||
# Channel log Directory. Where Logfiles are stored. Only need to change this
|
||||
#if you installed neostats into a different prefix other than NeoStats
|
||||
chanlogs="$HOME/NeoStats/ChanLogs/"
|
||||
|
||||
# Onis Installation Path
|
||||
onisinstall="$HOME/onis-0.4.6/"
|
||||
onisinstall="$HOME/onis-0.4.9/"
|
||||
|
||||
# Output Path for Stats. Has to be writtable by the user executing this script
|
||||
onisoutput="/var/www/html/stats/"
|
||||
|
||||
# optional Onis Commandline options
|
||||
onisoptions=""
|
||||
|
||||
#=============================================================================
|
||||
# End of Configuration. Dont edit anything below this line
|
||||
#=============================================================================
|
||||
|
||||
LANG=C
|
||||
|
||||
|
||||
doonis() {
|
||||
#test if output directory exists
|
||||
if [ ! -d $chanlogs/$1/html ]; then
|
||||
|
@ -17,7 +27,7 @@ doonis() {
|
|||
fi
|
||||
cd $chanlogs/$1
|
||||
files=`ls $chanlogs/$1/*.log`
|
||||
command="$onisinstall/onis --config $chanlogs/onisconfig --output $chanlogs/$1/html/index.html --channel \"$1\" --persistency_file $chanlogs/$1/persistancy.data --overwrite true $onisoptions $files"
|
||||
command="$onisinstall/onis --config $chanlogs/onisconfig --output $onisoutput/$1.html --channel \"$1\" --persistency_file $chanlogs/$1/persistancy.data --overwrite true $onisoptions $files"
|
||||
echo `$command`
|
||||
cd $chanlogs
|
||||
}
|
||||
|
|
|
@ -447,7 +447,7 @@ s,@PACKAGE_VERSION@,,;t t
|
|||
s,@PACKAGE_STRING@,,;t t
|
||||
s,@PACKAGE_BUGREPORT@,,;t t
|
||||
s,@exec_prefix@,${prefix},;t t
|
||||
s,@prefix@,/home/fish/NeoStats/,;t t
|
||||
s,@prefix@,/home/ircd/NeoStats/,;t t
|
||||
s,@program_transform_name@,s,x,x,,;t t
|
||||
s,@bindir@,${exec_prefix}/bin,;t t
|
||||
s,@sbindir@,${exec_prefix}/sbin,;t t
|
||||
|
@ -472,14 +472,14 @@ s,@LIBS@,,;t t
|
|||
s,@CC@,gcc,;t t
|
||||
s,@CFLAGS@, -O2,;t t
|
||||
s,@LDFLAGS@,,;t t
|
||||
s,@CPPFLAGS@, -I/home/fish/NeoStats//include/,;t t
|
||||
s,@CPPFLAGS@, -I/home/ircd/NeoStats//include/,;t t
|
||||
s,@ac_ct_CC@,gcc,;t t
|
||||
s,@EXEEXT@,,;t t
|
||||
s,@OBJEXT@,o,;t t
|
||||
s,@INSTALL_PROGRAM@,${INSTALL},;t t
|
||||
s,@INSTALL_SCRIPT@,${INSTALL},;t t
|
||||
s,@INSTALL_DATA@,${INSTALL} -m 644,;t t
|
||||
s,@DIRINST@,/home/fish/NeoStats/,;t t
|
||||
s,@DIRINST@,/home/ircd/NeoStats/,;t t
|
||||
s,@LIBOBJS@,,;t t
|
||||
s,@LTLIBOBJS@,,;t t
|
||||
CEOF
|
||||
|
|
Reference in a new issue