Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorder chown, move tmp dir #26

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ project_url: "https://github.com/airsonic-advanced/airsonic-advanced"
project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/airsonic-banner.png"
project_blurb: "[{{ project_name|capitalize }}]({{ project_url }}) is a free, web-based media streamer, providing ubiquitious access to your music. Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room."
project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}"
project_blurb_optional_extras_enabled: false

# supported architectures
available_architectures:
- { arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
- { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}

# development version
development_versions: false

# container parameters
common_param_env_vars_enabled: true
param_container_name: "{{ project_name }}"
Expand All @@ -41,6 +37,8 @@ opt_param_device_map: true
opt_param_devices:
- { device_path: "/dev/snd", device_host_path: "/dev/snd", desc: "Only needed to pass your host sound device to Airsonic's Java jukebox player." }

readonly_supported: true

# application setup block
app_setup_block_enabled: true
app_setup_block: |
Expand Down
5 changes: 3 additions & 2 deletions root/etc/s6-overlay/s6-rc.d/init-airsonic-advanced-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
# shellcheck shell=bash

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

lsiown -R abc:abc /config "${AIRSONIC_ADVANCED_SETTINGS}" /run/tomcat.4040

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

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