🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/transmission.sh
This commit is contained in:
casjay 2023-07-05 09:45:23 -04:00
parent 3cfd8378ab
commit ab021fe697
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F

View File

@ -55,7 +55,7 @@ done
PRE_EXEC_MESSAGE="" PRE_EXEC_MESSAGE=""
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Default predefined variables # Default predefined variables
WORKDIR="" # set working directory WORKDIR="/root" # set working directory
DATA_DIR="/data" # set data directory DATA_DIR="/data" # set data directory
WWW_DIR="/data/htdocs/www" # set the web root 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() { __update_conf_files() {
local exitCode=0 # default exit code local exitCode=0 # default exit code
local user="${SERVICE_USER:-root}" # specifiy different user local user="${SERVICE_USER:-root}" # specifiy different user
local local_trans_conf_dir="${WORKDIR:-$PWD}/.config/transmission-daemon"
# define actions # define actions
@ -149,8 +150,8 @@ __update_conf_files() {
# replace variables recursively # replace variables recursively
# __find_replace "" "" "$CONF_DIR/" # __find_replace "" "" "$CONF_DIR/"
# custom commands # custom commands
mkdir -p "$PWD/.config" mkdir -p "$local_trans_conf_dir"
ln -sf "$CONF_DIR" "$PWD/.config/transmission-daemon" ln -sf "$CONF_DIR" "$local_trans_conf_dir"
# other # other