File: dancerconfig

package info (click to toggle)
ircd 2.10.04-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,248 kB
  • ctags: 2,145
  • sloc: ansic: 26,591; makefile: 666; sh: 418; perl: 18
file content (46 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

if [ "$(whoami)" = "root" ]
then
    echo $0: cannot be run as root
    exit 1
fi

id

mkdir -p ~/bin
mkdir -p ~/etc
mkdir -p ~/log
mkdir -p ~/run

if [ ! -f ~/bin/dancer ]
then
    echo Linking ~/bin/dancer to /usr/lib/ircd/bin/dancer.
    ln -s /usr/lib/ircd/bin/dancer ~/bin/dancer
fi

if [ ! -f ~/log/users ]
then
    echo Creating ~/log/users log.
    install -m 640 -o dancer -g irc /dev/null ~/log/users
fi

if [ ! -f ~/log/opers ]
then
    echo Creating ~/log/opers log.
    install -m 640 -o dancer -g irc /dev/null ~/log/opers
fi

if [ ! -f ~/log/opfail ]
then
    echo Creating ~/log/opfail log.
    install -m 640 -o dancer -g irc /dev/null ~/log/opfail
fi

if [ ! -f ~/log/clones ]
then
    echo Creating ~/log/clones log.
    install -m 640 -o dancer -g irc /dev/null ~/log/clones
fi

echo IRC server directories ready for configuration.