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.
23 lines
670 B
23 lines
670 B
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# This is for Kubernetes really, can't mount a single file there
|
|
# Or...I'm an idiot
|
|
echo "Copying server cert"
|
|
cp /bootstrap/tls/server.cert.pem /home/unreal/unrealircd/conf/tls/server.cert.pem
|
|
echo "Copying server key"
|
|
cp /bootstrap/tls/server.key.pem /home/unreal/unrealircd/conf/tls/server.key.pem
|
|
echo "Copying unrealircd.conf"
|
|
cp /bootstrap/conf/unrealircd.conf /home/unreal/unrealircd/conf/unrealircd.conf
|
|
if [ -f /boostrap/ircd.motd ]; then
|
|
echo "Copying ircd.motd"
|
|
cp /bootstrap/ircd.motd /home/unreal/unrealircd/conf/ircd.motd
|
|
fi
|
|
|
|
cd /home/unreal/unrealircd
|
|
|
|
# Grr...no way to run in foreground
|
|
./unrealircd start
|
|
|
|
tail -f logs/ircd.log
|
|
|