mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-03 07:35:41 +00:00
UNMAINTAINED
This commit is contained in:
22
unmaintained/libresonic/run.sh
Normal file
22
unmaintained/libresonic/run.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p /data/transcode
|
||||
ln -s /usr/bin/ffmpeg /data/transcode/ffmpeg
|
||||
ln -s /usr/bin/lame /data/transcode/lame
|
||||
|
||||
chown -R $UID:$GID /data /playlists /libresonic
|
||||
|
||||
exec su-exec $UID:$GID tini -- \
|
||||
java -Xmx256m \
|
||||
-Dserver.host=0.0.0.0 \
|
||||
-Dserver.port=4040 \
|
||||
-Dserver.contextPath=/ \
|
||||
-Dlibresonic.home=/data \
|
||||
-Dlibresonic.host=0.0.0.0 \
|
||||
-Dlibresonic.port=4040 \
|
||||
-Dlibresonic.contextPath=/ \
|
||||
-Dlibresonic.defaultMusicFolder=/musics \
|
||||
-Dlibresonic.defaultPodcastFolder=/podcasts \
|
||||
-Dlibresonic.defaultPlaylistFolder=/playlists \
|
||||
-Djava.awt.headless=true \
|
||||
-jar libresonic.war
|
Reference in New Issue
Block a user