From ab021fe697656ff3b5a925e7b7698c4970e26780 Mon Sep 17 00:00:00 2001 From: casjay Date: Wed, 5 Jul 2023 09:45:23 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/etc/docker/init.d/transmission.sh --- rootfs/usr/local/etc/docker/init.d/transmission.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rootfs/usr/local/etc/docker/init.d/transmission.sh b/rootfs/usr/local/etc/docker/init.d/transmission.sh index 9bb6a25..6f04117 100755 --- a/rootfs/usr/local/etc/docker/init.d/transmission.sh +++ b/rootfs/usr/local/etc/docker/init.d/transmission.sh @@ -55,7 +55,7 @@ done PRE_EXEC_MESSAGE="" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Default predefined variables -WORKDIR="" # set working directory +WORKDIR="/root" # set working directory DATA_DIR="/data" # set data directory WWW_DIR="/data/htdocs/www" # set the web root # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -118,6 +118,7 @@ APPLICATION_DIRS="$RUN_DIR $ETC_DIR $CONF_DIR $LOG_DIR" __update_conf_files() { local exitCode=0 # default exit code local user="${SERVICE_USER:-root}" # specifiy different user + local local_trans_conf_dir="${WORKDIR:-$PWD}/.config/transmission-daemon" # define actions @@ -149,8 +150,8 @@ __update_conf_files() { # replace variables recursively # __find_replace "" "" "$CONF_DIR/" # custom commands - mkdir -p "$PWD/.config" - ln -sf "$CONF_DIR" "$PWD/.config/transmission-daemon" + mkdir -p "$local_trans_conf_dir" + ln -sf "$CONF_DIR" "$local_trans_conf_dir" # other