mirror of
https://github.com/casjaysdevdocker/transmission
synced 2025-01-18 00:34:26 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
8293587108
commit
fd571b10ee
@ -15,7 +15,7 @@ RUN mkdir -p /bin/ /config/ /data/ && \
|
||||
apk update -U --no-cache transmission-daemon
|
||||
|
||||
COPY ./bin/. /usr/local/bin/
|
||||
COPY ./config/. /config/
|
||||
COPY ./config/. /etc/
|
||||
COPY ./data/. /data/
|
||||
|
||||
FROM scratch
|
||||
|
@ -94,7 +94,11 @@ fi
|
||||
[ -f "/etc/.env.sh" ] && rm -Rf "/etc/.env.sh"
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Additional commands
|
||||
|
||||
if [ -f "/config/transmission/settings.json" ]; then
|
||||
cp -Rf "/config/transmission/settings.json" "/etc/transmission/settings.json"
|
||||
else
|
||||
cp -Rf "/etc/transmission/settings.json" "/config/transmission/settings.json"
|
||||
fi
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
case "$1" in
|
||||
--help) # Help message
|
||||
@ -118,7 +122,7 @@ healthcheck) # Docker healthcheck
|
||||
|
||||
*) # Execute primary command
|
||||
if [ $# -eq 0 ]; then
|
||||
transmission-daemon --config-dir /config/transmission -f
|
||||
transmission-daemon --config-dir /etc/transmission -f
|
||||
else
|
||||
__exec_bash "/bin/bash"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user