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