forked from botez/docker-madsonic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
madsonic.sh
executable file
·43 lines (37 loc) · 1.02 KB
/
madsonic.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
###################################################################################
# Shell script for starting Madsonic. See http://madsonic.org.
###################################################################################
## Copy over ffmpeg and other transcoders
mkdir -p /config/transcode
cp /var/madsonic/transcode/* /config/transcode/
chown -R nobody:users /config
chmod +x /config/transcode/*
## Start up Madsonic
HOME=/config
if [ -z $HOST ]; then
HOST=0.0.0.0
fi
if [ -z $PORT ]; then
PORT=4040
fi
if [ -z $SSLPORT ]; then
SSLPORT=4050
fi
if [ -z $CONTEXT_PATH ]; then
CONTEXT_PATH=/
fi
if [ -z $MAX_MEMORY ]; then
MAX_MEMORY=1200
fi
MADSONIC_USER=nobody
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
/usr/bin/madsonic --home=$HOME \
--host=$HOST \
--port=$PORT \
--https-port=$SSLPORT \
--context-path=$CONTEXT_PATH \
--max-memory=$MAX_MEMORY
sleep 5
tail -f /config/madsonic_sh.log