Skip to content

Commit

Permalink
Merge pull request #24 from linuxserver/ro-tweaks
Browse files Browse the repository at this point in the history
Reorder chown, move tmp dir
  • Loading branch information
thespad authored Jul 10, 2024
2 parents 6fc6257 + aba0cfb commit d7c052a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pipeline {
CI_WEB='true'
CI_PORT='4040'
CI_SSL='false'
CI_DELAY='120'
CI_DELAY='600'
CI_DOCKERENV=''
CI_AUTH=''
CI_WEBPATH=''
Expand Down
2 changes: 1 addition & 1 deletion jenkins-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repo_vars:
- CI_WEB='true'
- CI_PORT='4040'
- CI_SSL='false'
- CI_DELAY='120'
- CI_DELAY='600'
- CI_DOCKERENV=''
- CI_AUTH=''
- CI_WEBPATH=''
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 d7c052a

Please sign in to comment.