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.
18 lines
398 B
18 lines
398 B
#!/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"
|
|
|