@@ -12,19 +12,37 @@ URL_BASE="/${CONTEXT_PATH}"
1212# add option to pass runtime arguments
1313IFS=" " read -r -a RUN_ARRAY <<< "$JAVA_OPTS"
1414
15+ if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
1516exec \
16- s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 4040" \
17- cd "${AIRSONIC_ADVANCED_HOME}" s6-setuidgid abc \
18- java \
19- -Dlog4j2.formatMsgNoLookups=true \
20- -Dairsonic.defaultMusicFolder=/music \
21- -Dairsonic.defaultPlaylistFolder=/playlists \
22- -Dairsonic.defaultPodcastFolder=/podcasts \
23- -Dairsonic.home="${AIRSONIC_ADVANCED_SETTINGS}" \
24- -Djava.awt.headless=true \
25- -Djava.io.tmpdir="/run/tomcat.4040" \
26- -Dserver.servlet.context-path="${URL_BASE}" \
27- -Dserver.host=0.0.0.0 \
28- -Dserver.port=4040 \
29- "${RUN_ARRAY[@]}" \
30- -jar airsonic.war
17+ s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 4040" \
18+ cd "${AIRSONIC_ADVANCED_HOME}" s6-setuidgid abc \
19+ java \
20+ -Dlog4j2.formatMsgNoLookups=true \
21+ -Dairsonic.defaultMusicFolder=/music \
22+ -Dairsonic.defaultPlaylistFolder=/playlists \
23+ -Dairsonic.defaultPodcastFolder=/podcasts \
24+ -Dairsonic.home="${AIRSONIC_ADVANCED_SETTINGS}" \
25+ -Djava.awt.headless=true \
26+ -Djava.io.tmpdir="/run/tomcat.4040" \
27+ -Dserver.servlet.context-path="${URL_BASE}" \
28+ -Dserver.host=0.0.0.0 \
29+ -Dserver.port=4040 \
30+ "${RUN_ARRAY[@]}" \
31+ -jar airsonic.war
32+ else
33+ s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 4040" \
34+ cd "${AIRSONIC_ADVANCED_HOME}" \
35+ java \
36+ -Dlog4j2.formatMsgNoLookups=true \
37+ -Dairsonic.defaultMusicFolder=/music \
38+ -Dairsonic.defaultPlaylistFolder=/playlists \
39+ -Dairsonic.defaultPodcastFolder=/podcasts \
40+ -Dairsonic.home="${AIRSONIC_ADVANCED_SETTINGS}" \
41+ -Djava.awt.headless=true \
42+ -Djava.io.tmpdir="/run/tomcat.4040" \
43+ -Dserver.servlet.context-path="${URL_BASE}" \
44+ -Dserver.host=0.0.0.0 \
45+ -Dserver.port=4040 \
46+ "${RUN_ARRAY[@]}" \
47+ -jar airsonic.war
48+ fi
0 commit comments