Skip to content

Commit

Permalink
Merge pull request #230 from linuxserver/master-ro-tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Roxedus authored Jul 5, 2024
2 parents afce32c + 88d72fe commit 1352024
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/unrar:latest as unrar
FROM ghcr.io/linuxserver/unrar:latest AS unrar

FROM ghcr.io/linuxserver/baseimage-alpine:3.20

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/unrar:arm64v8-latest as unrar
FROM ghcr.io/linuxserver/unrar:arm64v8-latest AS unrar

FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20

Expand Down
2 changes: 2 additions & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ opt_param_volumes:
- { vol_path: "/downloads", vol_host_path: "/path/to/downloads", desc: "Local path for finished downloads." }
- { vol_path: "/incomplete-downloads", vol_host_path: "/path/to/incomplete/downloads", desc: "Local path for incomplete-downloads." }

readonly_supported: true

# application setup block
app_setup_block_enabled: true
app_setup_block: |
Expand Down
14 changes: 6 additions & 8 deletions root/etc/s6-overlay/s6-rc.d/init-sabnzbd-config/run
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

# make folders
mkdir -p \
/downloads \
/incomplete-downloads
if grep -qe ' /downloads ' /proc/mounts; then
lsiown abc:abc /downloads
fi

# permissions
lsiown abc:abc \
/downloads \
/incomplete-downloads
if grep -qe ' /incomplete-downloads ' /proc/mounts; then
lsiown abc:abc /incomplete-downloads
fi

find /config -path /config/Downloads -prune -o -exec lsiown abc:abc {} +

0 comments on commit 1352024

Please sign in to comment.