forked from glftpd/foo-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.mod_prebw
49 lines (32 loc) · 1.3 KB
/
README.mod_prebw
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
What is mod_prebw ?
-------------------
Runs prebw script on release dir after pre
Building:
---------
Just build it with the make script ;)
Or, to build this module only:
make mod_prebw.so && cp mod_prebw.so /glftpd/bin/premodules
Add it to the modules list in pre.cfg like this:
modules=/bin/premodules/mod_prebw.so
If you have more modules already loaded, then it will look like this
modules=/bin/premodules/mod_other.so|/bin/premodules/mod_whatever.so|/bin/premodules/mod_prebw.so
Configuring:
------------
Add the module to the modules list in pre.cfg and add property thats points to the prebw script
and define section(s) where prebw should be run:
#
# properties for prebw module.
#
mod_prebw.bin=/bin/slv-prebw.sh
mod_prebw.sections=apps|games
PreBW Scripts:
--------------
While the default mod_prebw.bin setting is 'slv-prebw.sh', other prebw scripts should work too.
Like 'glFTPd PreBW' by biohazard (untested).
Since the prebw script now runs chrooted, make sure it can find glftpd's logs etc.
For slv-prebw:
change shebang to #!/bin/bash
just set GLROOT="" and make sure any required binaries (sort, uniq, tac) are in gldir/bin
For bio's prebw:
edit LOG paths in config.hpp (remove /glftpd) and recompile
You might want to remove any TCL scripts from your bot that also call the prebw script.