25 lines
567 B
Plaintext
25 lines
567 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
NAME="Synchronet BBS"
|
||
|
|
||
|
export PATH=$PATH:${SBBSEXEC}
|
||
|
|
||
|
if [ ! -e "${SBBSCTRL}/sbbs.ini" ]; then
|
||
|
echo "* Installing SBBS ctrl files into ${SBBSCTRL}"
|
||
|
cp -a ${SBBSCTRL}.orig/* ${SBBSCTRL}
|
||
|
fi
|
||
|
|
||
|
if [ ! -d "${SBBSCTRL}/../nodes/node1" ]; then
|
||
|
echo "* Installing SBBS nodes files into ${SBBSCTRL}/../nodes"
|
||
|
cp -Ra ${SBBSCTRL}/../nodes.orig/* ${SBBSCTRL}/../nodes/
|
||
|
fi
|
||
|
|
||
|
if [ -x /usr/sbin/zerotier-one -a -n "${ENABLE_ZT}" ]; then
|
||
|
echo "* Starting ZeroTier"
|
||
|
mkdir /dev/net && mknod /dev/net/tun -m 666 c 10 200
|
||
|
/usr/sbin/zerotier-one -d
|
||
|
fi
|
||
|
|
||
|
exec "$@"
|