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