-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-entrypoint.sh
executable file
·22 lines (20 loc) · 1.33 KB
/
docker-entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
sed -ri 's@&&AA_DB_NAME&&@'${AA_DB_NAME}'@' /home/allianceauth/mumble-authenticator/authenticator.ini
sed -ri 's@&&AA_DB_USER&&@'${AA_DB_USER}'@' /home/allianceauth/mumble-authenticator/authenticator.ini
sed -ri 's@&&AA_DB_PASSWORD&&@'${AA_DB_PASSWORD}'@' /home/allianceauth/mumble-authenticator/authenticator.ini
sed -ri 's@&&AA_MUMBLE_DB_PREFIX&&@'${AA_MUMBLE_DB_PREFIX}'@' /home/allianceauth/mumble-authenticator/authenticator.ini
sed -ri 's@&&AA_DB_HOST&&@'${AA_DB_HOST}'@' /home/allianceauth/mumble-authenticator/authenticator.ini
sed -ri 's@&&AA_DB_PORT&&@'${AA_DB_PORT}'@' /home/allianceauth/mumble-authenticator/authenticator.ini
sed -ri 's@&&MUMBLE_ICE_SECRET&&@'${MUMBLE_ICE_SECRET}'@' /home/allianceauth/mumble-authenticator/authenticator.ini
sed -ri 's@&&MUMBLE_HOST_NAME&&@'${MUMBLE_HOST_NAME}'@' /home/allianceauth/mumble-authenticator/authenticator.ini
sed -ri 's@&&MUMBLE_ICE_PORT&&@'${MUMBLE_ICE_PORT}'@' /home/allianceauth/mumble-authenticator/authenticator.ini
# Bootstrap Murmurs config parser, but echo its command instead of launching mumble
bash /entrypoint.sh echo
if [ -f /mumble-server.sqlite ]; then
echo "Pulling Database in"
cp /mumble-server.sqlite /data/mumble-server.sqlite
chown mumble:mumble /data/mumble-server.sqlite
fi
# Start Mumble and authenticatot
echo "Starting Supervisor Services"
supervisord