Skip to content

Commit

Permalink
Reorder chown, move tmp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad committed Jul 2, 2024
1 parent d913cfc commit 29c6878
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ param_ports:
opt_param_usage_include_env: true
opt_param_env_vars:
- { env_var: "CONTEXT_PATH", env_value: "url-base", desc: "Base url for use with reverse proxies etc." }

readonly_supported: true

# application setup block
app_setup_block_enabled: true
app_setup_block: "While this is a more up to date rebase of the original Booksonic server, upgrading in place is not supported and a fresh install has been recommended. Default user/pass is admin/admin"
Expand Down
9 changes: 5 additions & 4 deletions root/etc/s6-overlay/s6-rc.d/init-booksonic-air-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
# shellcheck shell=bash

mkdir -p "${BOOKSONIC_AIR_SETTINGS}"/transcode
mkdir -p /run/tomcat.4040

lsiown -R abc:abc \
/config \
/run/tomcat.4040

if [[ ! -e "${BOOKSONIC_AIR_SETTINGS}"/transcode/ffmpeg ]] || [[ ! -e "${BOOKSONIC_AIR_SETTINGS}"/transcode/flac ]] || [[ ! -e "${BOOKSONIC_AIR_SETTINGS}"/transcode/lame ]]; then
ln -sf /usr/bin/ffmpeg "${BOOKSONIC_AIR_SETTINGS}"/transcode/
ln -sf /usr/bin/flac "${BOOKSONIC_AIR_SETTINGS}"/transcode/
ln -sf /usr/bin/lame "${BOOKSONIC_AIR_SETTINGS}"/transcode/
fi

lsiown -R abc:abc \
/config \
"${BOOKSONIC_AIR_HOME}"
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-booksonic-air/run
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ exec \
-Dairsonic.defaultPodcastFolder=/podcasts \
-Dairsonic.home="${BOOKSONIC_AIR_SETTINGS}" \
-Djava.awt.headless=true \
-Djava.io.tmpdir="/run/tomcat.4040" \
-Dserver.servlet.contextPath="${URL_BASE}" \
-Dserver.host=0.0.0.0 \
-Dserver.port=4040 \
Expand Down

0 comments on commit 29c6878

Please sign in to comment.