-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
37 lines (28 loc) · 1002 Bytes
/
run.sh
File metadata and controls
37 lines (28 loc) · 1002 Bytes
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
#!/bin/bash
USER="ircstack"
GROUP="ircstack"
if [ -z "$DISABLE_BITLBEE" ]; then
if [ ! -d "$IRC_HOME/bitlbee/db" ]; then
echo "Creating bitlbee config dir"
mkdir -p "$IRC_HOME/bitlbee/db"
fi
if [ ! -f "$IRC_HOME/bitlbee/bitlbee.conf" ]; then
echo "Install default bitlbee configuration file"
cp /usr/local/ircstack/bitlbee.conf "$IRC_HOME/bitlbee/bitlbee.conf"
fi
mv /etc/supervisor/conf.d/{bitlbee.conf.disabled,bitlbee.conf}
fi
if [ ! -d "$IRC_HOME/znc/configs" ]; then
echo "Create ZNC configuration dir"
mkdir -p "$IRC_HOME/znc/configs"
fi
if [ ! -f "$IRC_HOME/znc/znc.pem" ]; then
echo "Generate ZNC SSL certificate"
znc -p -d "$IRC_HOME/znc/"
fi
if [ ! -f "$IRC_HOME/znc/configs/znc.conf" ]; then
echo "Install default ZNC configuration file"
cp /usr/local/ircstack/znc.conf "$IRC_HOME/znc/configs/znc.conf"
fi
mv /etc/supervisor/conf.d/{znc.conf.disabled,znc.conf}
exec /usr/bin/supervisord -c /etc/supervisor/supervisord.conf