You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-ircd/atheme/root/entrypoint.sh

19 lines
398 B

3 years ago
#!/bin/sh
DATADIR=/srv/data/etc
mkdir -p "$DATADIR"
chown atheme:atheme -R "$DATADIR"
if [ ! -e $DATADIR/atheme.conf ]; then
printf "Configuration file not found. Generating it..."
3 years ago
cp /srv/atheme/etc/atheme.conf.example $DATADIR/atheme.conf
fi
rm -f /srv/atheme/var/atheme.pid
su atheme \
-c "/srv/atheme/bin/atheme-services \
-c $DATADIR/atheme.conf \
-n"