🗃️ Committing everything that changed 🗃️

This commit is contained in:
casjay 2022-09-27 09:41:03 -04:00
parent 8293587108
commit fd571b10ee
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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