Auto run doorparty.sh on container start

This commit is contained in:
Deon George 2021-01-14 17:43:48 +11:00
parent e2c81af094
commit ba0b285a8f
2 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,6 @@ GID=1000
USERS=${SBBSCTRL}/doorparty-connector.users USERS=${SBBSCTRL}/doorparty-connector.users
if ! grep -qe ^${GROUP}: /etc/group; then if ! grep -qe ^${GROUP}: /etc/group; then
echo true
groupadd -g ${GID} ${GROUP} groupadd -g ${GID} ${GROUP}
fi fi

4
init
View File

@ -21,6 +21,10 @@ if [ ! -e "${SBBSCTRL}/../text/answer.msg" ]; then
cp -Ras ${SBBSCTRL}/../text.orig/* ${SBBSCTRL}/../text/ cp -Ras ${SBBSCTRL}/../text.orig/* ${SBBSCTRL}/../text/
fi fi
if [ -r ${SBBSCTRL}/doorparty-connector.users ]; then
${SBBSCTRL}../exec/doorparty.sh
fi
if [ -x /usr/sbin/zerotier-one -a -n "${ENABLE_ZT}" ]; then if [ -x /usr/sbin/zerotier-one -a -n "${ENABLE_ZT}" ]; then
echo "* Starting ZeroTier" echo "* Starting ZeroTier"
mkdir /dev/net && mknod /dev/net/tun -m 666 c 10 200 mkdir /dev/net && mknod /dev/net/tun -m 666 c 10 200