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/solanum/root/entrypoint.sh

20 lines
482 B

#!/bin/sh
3 years ago
mkdir -p /srv/data/etc /srv/data/logs
3 years ago
chown solanum:solanum -R /srv/data
3 years ago
if [ ! -e /srv/data/etc/ircd.conf ]; then
echo "Configuration file not found. Generating it..."
3 years ago
cp /srv/solanum/etc/ircd.conf.example /srv/data/etc/ircd.conf
fi
3 years ago
if [ ! -e /srv/data/etc/ircd.motd ]; then
echo "MOTD file not found. Generating it..."
3 years ago
cp /srv/solanum/etc/ircd.motd /srv/data/etc/ircd.motd
fi
su solanum \
-c "/srv/solanum/bin/solanum \
-foreground"