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.
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
mkdir -p /srv/data/etc /srv/data/logs
|
|
|
|
|
|
|
|
chown solanum:solanum -R /srv/data
|
|
|
|
|
|
|
|
if [ ! -e /srv/data/etc/ircd.conf ]; then
|
|
|
|
echo "Configuration file not found. Generating it..."
|
|
|
|
cp /srv/solanum/etc/ircd.conf.example /srv/data/etc/ircd.conf
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -e /srv/data/etc/ircd.motd ]; then
|
|
|
|
echo "MOTD file not found. Generating it..."
|
|
|
|
cp /srv/solanum/etc/ircd.motd /srv/data/etc/ircd.motd
|
|
|
|
fi
|
|
|
|
|
|
|
|
su solanum -c "/srv/solanum/bin/solanum \
|
|
|
|
-configfile /srv/data/etc/ircd.conf \
|
|
|
|
-logfile /srv/data/logs/ircd.logs \
|
|
|
|
-foreground"
|