#!/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"